1
0

Remove babel from the tutorial, assertion, async

This commit is contained in:
Eugen Wissner 2024-12-19 23:54:35 +01:00
parent ce48d31769
commit 53e4c5dba6
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
34 changed files with 18352 additions and 9029 deletions

View File

@ -1,7 +0,0 @@
module.exports = {
presets: [
[ '@babel/env', {
useBuiltIns: 'usage'
}]
]
}

View File

@ -1,4 +1,4 @@
import { Given, When, Then } from 'cucumber'
import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
Given('the start value is {int}', function (int) {

View File

@ -1,4 +1,4 @@
import { When, Then } from 'cucumber'
import { When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
When('I concatenate {string} and {string}', function (string, string2) {

3592
1args/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,17 +3,14 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "cucumber-js --require-module '@babel/register'"
"test": "cucumber-js"
},
"author": "Eugen Wissner <belka@caraus.de>",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/register": "^7.0.0",
"babel-loader": "^8.0.4",
"chai": "^4.2.0",
"cucumber": "^5.0.3"
"@cucumber/cucumber": "^11.1.1",
"chai": "^5.1.2"
}
}

View File

@ -1,7 +0,0 @@
module.exports = {
presets: [
[ '@babel/env', {
useBuiltIns: 'usage'
}]
]
}

View File

@ -1,4 +1,4 @@
import { Given, When, Then } from 'cucumber'
import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
Given('the start value is {int}', function (int) {

View File

@ -1,4 +1,4 @@
import { Given, When, Then } from 'cucumber'
import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
Given('the start value is {string}', function (string) {

3592
2obj/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,17 +3,14 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "cucumber-js --require-module '@babel/register'"
"test": "cucumber-js"
},
"author": "Eugen Wissner <belka@caraus.de>",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/register": "^7.0.0",
"babel-loader": "^8.0.4",
"chai": "^4.2.0",
"cucumber": "^5.0.3"
"@cucumber/cucumber": "^11.1.1",
"chai": "^5.1.2"
}
}

View File

@ -1,7 +0,0 @@
module.exports = {
presets: [
[ '@babel/env', {
useBuiltIns: 'usage'
}]
]
}

View File

@ -1,4 +1,4 @@
import { Given, When, Then } from 'cucumber'
import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
Given('the start value is {int}', function (int) {

View File

@ -1,4 +1,4 @@
import { Given, When, Then } from 'cucumber'
import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
Given('the start value is {string}', function (string) {

3592
3bg/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,17 +3,14 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "cucumber-js --require-module '@babel/register'"
"test": "cucumber-js"
},
"author": "Eugen Wissner <belka@caraus.de>",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/register": "^7.0.0",
"babel-loader": "^8.0.4",
"chai": "^4.2.0",
"cucumber": "^5.0.3"
"@cucumber/cucumber": "^11.1.1",
"chai": "^5.1.2"
}
}

View File

@ -1,7 +0,0 @@
module.exports = {
presets: [
[ '@babel/env', {
useBuiltIns: 'usage'
}]
]
}

View File

@ -1,4 +1,4 @@
import { Given, When, Then } from 'cucumber'
import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
Given('the start value is {int}', function (int) {

View File

@ -1,4 +1,4 @@
import { Given, When, Then } from 'cucumber'
import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
Given('the start value is {string}', function (string) {

File diff suppressed because it is too large Load Diff

View File

@ -3,17 +3,14 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "cucumber-js --require-module '@babel/register'"
"test": "cucumber-js"
},
"author": "Eugen Wissner <belka@caraus.de>",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/register": "^7.0.0",
"babel-loader": "^8.0.4",
"chai": "^4.2.0",
"cucumber": "^5.0.3"
"@cucumber/cucumber": "^11.1.1",
"chai": "^5.1.2"
}
}

View File

@ -1,5 +1,5 @@
const { expect } = require('chai')
const { Then } = require('cucumber')
import { expect } from 'chai'
import { Then } from '@cucumber/cucumber'
Then('I can choose the expect syntax', function () {
expect(true).to.be.true

View File

@ -1,6 +1,6 @@
const { expect } = require('chai')
const { When, Then } = require('cucumber')
const compared = require('../support/compared')
import { expect } from 'chai'
import { When, Then } from '@cucumber/cucumber'
import * as compared from '../support/compared.js'
When('I use chai', function () {
})

View File

@ -1,5 +1,7 @@
const { Then } = require('cucumber')
require('chai').should()
import { Then } from '@cucumber/cucumber'
import { should } from 'chai'
should()
Then('I can choose the should syntax', function () {
const boolean = true

View File

@ -1,6 +1,6 @@
const expect = require('expect')
const { When, Then } = require('cucumber')
const compared = require('../support/compared')
import expect from 'expect'
import { When, Then } from '@cucumber/cucumber'
import * as compared from '../support/compared.js'
When('I use jest', function () {
})

View File

@ -1,6 +1,6 @@
const assert = require('assert')
const { When, Then } = require('cucumber')
const compared = require('../support/compared')
import assert from 'assert'
import { When, Then } from '@cucumber/cucumber'
import * as compared from '../support/compared.js'
When('I use node', function () {
})

View File

@ -1,9 +1,7 @@
module.exports = {
actual: {},
expected: [
{
author: 'Nicolaus Cusanus',
title: 'Die belehrte Unwissenheit'
}
]
}
export const actual = {}
export const expected = [
{
author: 'Nicolaus Cusanus',
title: 'Die belehrte Unwissenheit'
}
]

File diff suppressed because it is too large Load Diff

View File

@ -3,14 +3,18 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "cucumber-js"
},
"author": "Eugen Wissner <belka@caraus.de>",
"license": "MPL-2.0",
"devDependencies": {
"chai": "^4.2.0",
"cucumber": "^5.0.3",
"expect": "^23.6.0"
"chai": "^5.1.2",
"expect": "^23.6.0",
"jest": "^29.7.0"
},
"dependencies": {
"@cucumber/cucumber": "^11.1.1"
}
}

View File

@ -1,7 +0,0 @@
module.exports = {
presets: [
[ '@babel/env', {
useBuiltIns: 'usage'
}]
]
}

View File

@ -1,4 +1,4 @@
import { When } from 'cucumber'
import { When } from '@cucumber/cucumber'
import axios from 'axios'
When('I request the same resource twice', async function () {

View File

@ -1,4 +1,4 @@
import { Given, When, Then } from 'cucumber'
import { Given, When, Then } from '@cucumber/cucumber'
import { expect } from 'chai'
import axios from 'axios'

View File

@ -1,4 +1,4 @@
import { BeforeAll, AfterAll } from 'cucumber'
import { BeforeAll, AfterAll } from '@cucumber/cucumber'
import express from 'express'
let server
@ -16,5 +16,3 @@ BeforeAll(function () {
AfterAll(function () {
server.close()
})

4582
async/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,19 +3,16 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "cucumber-js --require-module '@babel/register'"
"test": "cucumber-js"
},
"author": "Eugen Wissner <belka@caraus.de>",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/register": "^7.0.0",
"axios": "^0.18.0",
"babel-loader": "^8.0.4",
"chai": "^4.2.0",
"cucumber": "^5.0.3",
"@cucumber/cucumber": "^11.1.1",
"axios": "^1.7.9",
"chai": "^5.1.2",
"express": "^4.16.4"
}
}