Remove babel from the tutorial, assertion, async
This commit is contained in:
parent
ce48d31769
commit
53e4c5dba6
@ -1,7 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [
|
|
||||||
[ '@babel/env', {
|
|
||||||
useBuiltIns: 'usage'
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
import { Given, When, Then } from 'cucumber'
|
import { Given, When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
Given('the start value is {int}', function (int) {
|
Given('the start value is {int}', function (int) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { When, Then } from 'cucumber'
|
import { When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
When('I concatenate {string} and {string}', function (string, string2) {
|
When('I concatenate {string} and {string}', function (string, string2) {
|
||||||
|
3644
1args/package-lock.json
generated
3644
1args/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,17 +3,14 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "cucumber-js --require-module '@babel/register'"
|
"test": "cucumber-js"
|
||||||
},
|
},
|
||||||
"author": "Eugen Wissner <belka@caraus.de>",
|
"author": "Eugen Wissner <belka@caraus.de>",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.2.2",
|
"@cucumber/cucumber": "^11.1.1",
|
||||||
"@babel/preset-env": "^7.2.3",
|
"chai": "^5.1.2"
|
||||||
"@babel/register": "^7.0.0",
|
|
||||||
"babel-loader": "^8.0.4",
|
|
||||||
"chai": "^4.2.0",
|
|
||||||
"cucumber": "^5.0.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [
|
|
||||||
[ '@babel/env', {
|
|
||||||
useBuiltIns: 'usage'
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
import { Given, When, Then } from 'cucumber'
|
import { Given, When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
Given('the start value is {int}', function (int) {
|
Given('the start value is {int}', function (int) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Given, When, Then } from 'cucumber'
|
import { Given, When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
Given('the start value is {string}', function (string) {
|
Given('the start value is {string}', function (string) {
|
||||||
|
3644
2obj/package-lock.json
generated
3644
2obj/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,17 +3,14 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "cucumber-js --require-module '@babel/register'"
|
"test": "cucumber-js"
|
||||||
},
|
},
|
||||||
"author": "Eugen Wissner <belka@caraus.de>",
|
"author": "Eugen Wissner <belka@caraus.de>",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.2.2",
|
"@cucumber/cucumber": "^11.1.1",
|
||||||
"@babel/preset-env": "^7.2.3",
|
"chai": "^5.1.2"
|
||||||
"@babel/register": "^7.0.0",
|
|
||||||
"babel-loader": "^8.0.4",
|
|
||||||
"chai": "^4.2.0",
|
|
||||||
"cucumber": "^5.0.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [
|
|
||||||
[ '@babel/env', {
|
|
||||||
useBuiltIns: 'usage'
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
import { Given, When, Then } from 'cucumber'
|
import { Given, When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
Given('the start value is {int}', function (int) {
|
Given('the start value is {int}', function (int) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Given, When, Then } from 'cucumber'
|
import { Given, When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
Given('the start value is {string}', function (string) {
|
Given('the start value is {string}', function (string) {
|
||||||
|
3644
3bg/package-lock.json
generated
3644
3bg/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,17 +3,14 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "cucumber-js --require-module '@babel/register'"
|
"test": "cucumber-js"
|
||||||
},
|
},
|
||||||
"author": "Eugen Wissner <belka@caraus.de>",
|
"author": "Eugen Wissner <belka@caraus.de>",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.2.2",
|
"@cucumber/cucumber": "^11.1.1",
|
||||||
"@babel/preset-env": "^7.2.3",
|
"chai": "^5.1.2"
|
||||||
"@babel/register": "^7.0.0",
|
|
||||||
"babel-loader": "^8.0.4",
|
|
||||||
"chai": "^4.2.0",
|
|
||||||
"cucumber": "^5.0.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [
|
|
||||||
[ '@babel/env', {
|
|
||||||
useBuiltIns: 'usage'
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
import { Given, When, Then } from 'cucumber'
|
import { Given, When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
Given('the start value is {int}', function (int) {
|
Given('the start value is {int}', function (int) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Given, When, Then } from 'cucumber'
|
import { Given, When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
|
|
||||||
Given('the start value is {string}', function (string) {
|
Given('the start value is {string}', function (string) {
|
||||||
|
3644
4outline/package-lock.json
generated
3644
4outline/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,17 +3,14 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "cucumber-js --require-module '@babel/register'"
|
"test": "cucumber-js"
|
||||||
},
|
},
|
||||||
"author": "Eugen Wissner <belka@caraus.de>",
|
"author": "Eugen Wissner <belka@caraus.de>",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.2.2",
|
"@cucumber/cucumber": "^11.1.1",
|
||||||
"@babel/preset-env": "^7.2.3",
|
"chai": "^5.1.2"
|
||||||
"@babel/register": "^7.0.0",
|
|
||||||
"babel-loader": "^8.0.4",
|
|
||||||
"chai": "^4.2.0",
|
|
||||||
"cucumber": "^5.0.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
const { expect } = require('chai')
|
import { expect } from 'chai'
|
||||||
const { Then } = require('cucumber')
|
import { Then } from '@cucumber/cucumber'
|
||||||
|
|
||||||
Then('I can choose the expect syntax', function () {
|
Then('I can choose the expect syntax', function () {
|
||||||
expect(true).to.be.true
|
expect(true).to.be.true
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const { expect } = require('chai')
|
import { expect } from 'chai'
|
||||||
const { When, Then } = require('cucumber')
|
import { When, Then } from '@cucumber/cucumber'
|
||||||
const compared = require('../support/compared')
|
import * as compared from '../support/compared.js'
|
||||||
|
|
||||||
When('I use chai', function () {
|
When('I use chai', function () {
|
||||||
})
|
})
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
const { Then } = require('cucumber')
|
import { Then } from '@cucumber/cucumber'
|
||||||
require('chai').should()
|
import { should } from 'chai'
|
||||||
|
|
||||||
|
should()
|
||||||
|
|
||||||
Then('I can choose the should syntax', function () {
|
Then('I can choose the should syntax', function () {
|
||||||
const boolean = true
|
const boolean = true
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const expect = require('expect')
|
import expect from 'expect'
|
||||||
const { When, Then } = require('cucumber')
|
import { When, Then } from '@cucumber/cucumber'
|
||||||
const compared = require('../support/compared')
|
import * as compared from '../support/compared.js'
|
||||||
|
|
||||||
When('I use jest', function () {
|
When('I use jest', function () {
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const assert = require('assert')
|
import assert from 'assert'
|
||||||
const { When, Then } = require('cucumber')
|
import { When, Then } from '@cucumber/cucumber'
|
||||||
const compared = require('../support/compared')
|
import * as compared from '../support/compared.js'
|
||||||
|
|
||||||
When('I use node', function () {
|
When('I use node', function () {
|
||||||
})
|
})
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
module.exports = {
|
export const actual = {}
|
||||||
actual: {},
|
export const expected = [
|
||||||
expected: [
|
|
||||||
{
|
{
|
||||||
author: 'Nicolaus Cusanus',
|
author: 'Nicolaus Cusanus',
|
||||||
title: 'Die belehrte Unwissenheit'
|
title: 'Die belehrte Unwissenheit'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
|
8247
assertion/package-lock.json
generated
8247
assertion/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,14 +3,18 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "cucumber-js"
|
"test": "cucumber-js"
|
||||||
},
|
},
|
||||||
"author": "Eugen Wissner <belka@caraus.de>",
|
"author": "Eugen Wissner <belka@caraus.de>",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^4.2.0",
|
"chai": "^5.1.2",
|
||||||
"cucumber": "^5.0.3",
|
"expect": "^23.6.0",
|
||||||
"expect": "^23.6.0"
|
"jest": "^29.7.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@cucumber/cucumber": "^11.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [
|
|
||||||
[ '@babel/env', {
|
|
||||||
useBuiltIns: 'usage'
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
import { When } from 'cucumber'
|
import { When } from '@cucumber/cucumber'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
When('I request the same resource twice', async function () {
|
When('I request the same resource twice', async function () {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Given, When, Then } from 'cucumber'
|
import { Given, When, Then } from '@cucumber/cucumber'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BeforeAll, AfterAll } from 'cucumber'
|
import { BeforeAll, AfterAll } from '@cucumber/cucumber'
|
||||||
import express from 'express'
|
import express from 'express'
|
||||||
|
|
||||||
let server
|
let server
|
||||||
@ -16,5 +16,3 @@ BeforeAll(function () {
|
|||||||
AfterAll(function () {
|
AfterAll(function () {
|
||||||
server.close()
|
server.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
4580
async/package-lock.json
generated
4580
async/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,19 +3,16 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "cucumber-js --require-module '@babel/register'"
|
"test": "cucumber-js"
|
||||||
},
|
},
|
||||||
"author": "Eugen Wissner <belka@caraus.de>",
|
"author": "Eugen Wissner <belka@caraus.de>",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.2.2",
|
"@cucumber/cucumber": "^11.1.1",
|
||||||
"@babel/preset-env": "^7.2.3",
|
"axios": "^1.7.9",
|
||||||
"@babel/register": "^7.0.0",
|
"chai": "^5.1.2",
|
||||||
"axios": "^0.18.0",
|
|
||||||
"babel-loader": "^8.0.4",
|
|
||||||
"chai": "^4.2.0",
|
|
||||||
"cucumber": "^5.0.3",
|
|
||||||
"express": "^4.16.4"
|
"express": "^4.16.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user