Skip to content

Commit

Permalink
cucumber fix for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitorched committed Oct 5, 2023
1 parent 2a092b0 commit ea22d60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test-be": "npx nx run be:test",
"test-fe": "npx nx run fe:test",
"test-shared": "npx nx run shared:test",
"test-scenarios": "NODE_ENV=test npx nx run be:cucumber"
"test-scenarios": "npx nx run be:cucumber"
},
"private": false,
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/be/cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ let common = [
'--require ./features/step_definitions/**/*.ts', // Load step definitions
].join(' ');

process.env['NODE_ENV'] = "test";

module.exports = {
default: common
};
2 changes: 1 addition & 1 deletion packages/be/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scripts": {
"cucumber": "npx ../../node_modules/.bin/cucumber-js -p default"
"cucumber": "npx cucumber-js -p default"
},
"dependencies": {
"@app/shared": "file:be/packages/shared",
Expand Down

0 comments on commit ea22d60

Please sign in to comment.