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