Remove babel from the tutorial, assertion, async
This commit is contained in:
@ -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'
|
||||
|
||||
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 axios from 'axios'
|
||||
|
||||
|
@ -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
4582
async/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user