From 4b4e1c7229e1dfff666d73f9cb9d4947117190bf Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 24 Jul 2020 15:30:17 +0100 Subject: [PATCH] Setup generic test script command for nightwatch tests. --- workspace.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/workspace.json b/workspace.json index 13b0774a4e..0e5e0d8bae 100644 --- a/workspace.json +++ b/workspace.json @@ -100,9 +100,8 @@ "builder": "@nrwl/workspace:run-commands", "options": { "commands": [ - "tsc -p apps/remix-ide-e2e/tsconfig.e2e.json" + "TEST_SCRIPT='node_modules/.bin/nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js'; if [ {args.env} != undefined ]; then TEST_SCRIPT=${TEST_SCRIPT}' --env {args.env}'; else TEST_SCRIPT=${TEST_SCRIPT}' --env chrome'; fi; if [ {args.filePath} != undefined ]; then TEST_SCRIPT=${TEST_SCRIPT}' {args.filePath}'; fi; echo $TEST_SCRIPT; node_modules/.bin/tsc -p apps/remix-ide-e2e/tsconfig.e2e.json; eval $TEST_SCRIPT;" ], - "cwd": ".", "parallel": false } },