1
0

Use node assertions as standard solution

This commit is contained in:
2025-07-16 16:39:09 +02:00
parent ef41c7d788
commit decd8e9e3d
18 changed files with 1789 additions and 6069 deletions

View File

@@ -1,10 +1,10 @@
import { When, Then } from '@cucumber/cucumber';
import { expect } from 'chai';
import assert from 'node:assert/strict';
When('the step definitions are written in {word}', function (language: string) {
this.language = language;
});
Then("I don't get a warning about undefined steps", function () {
expect(this.language).to.equal('TypeScript');
assert.equal(this.language, 'TypeScript');
});

1259
ts/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,12 +10,8 @@
"author": "Eugen Wissner <belka@caraus.de>",
"license": "MPL-2.0",
"dependencies": {
"@cucumber/cucumber": "^11.1.1",
"chai": "^5.1.2",
"@cucumber/cucumber": "^12.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.7.2"
},
"devDependencies": {
"@types/chai": "^5.0.1"
}
}