From ea22d604d497ecb23a3db33ae8163786d578ab80 Mon Sep 17 00:00:00 2001 From: Kai Hillenbrand Date: Thu, 5 Oct 2023 14:26:13 +0200 Subject: [PATCH] cucumber fix for Windows --- package.json | 2 +- packages/be/cucumber.js | 2 ++ packages/be/package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aa5688da..5eb7b88a 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/packages/be/cucumber.js b/packages/be/cucumber.js index ca672e89..7667a30f 100644 --- a/packages/be/cucumber.js +++ b/packages/be/cucumber.js @@ -6,6 +6,8 @@ let common = [ '--require ./features/step_definitions/**/*.ts', // Load step definitions ].join(' '); +process.env['NODE_ENV'] = "test"; + module.exports = { default: common }; diff --git a/packages/be/package.json b/packages/be/package.json index 29fdc35b..1a620f2c 100644 --- a/packages/be/package.json +++ b/packages/be/package.json @@ -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",