Skip to content

Commit

Permalink
Use cross-env for running tests on PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
lfdebrux committed Sep 27, 2022
1 parent 0f69993 commit 8bfa24b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
"scripts": {
"tmp-kit": "mkdir -p $TMPDIR/govuk-prototype-kit-playground && cd $TMPDIR/govuk-prototype-kit-playground && rm -Rf ./* && govuk-prototype-kit create --version local . && npm start",
"start": "echo 'This project cannot be started, in order to test this project please create a prototype kit using the cli.'",
"start:package": "KIT_TEST_DIR=tmp/test-prototype-package node cypress/scripts/run-starter-prototype",
"start:package": "cross-env KIT_TEST_DIR=tmp/test-prototype-package node cypress/scripts/run-starter-prototype",
"lint": "standard '**/*.js' bin/cli scripts/create-release-archive lib/build/dev-server lib/build/generate-assets",
"rapidtest": "jest --bail",
"cypress:open": "cypress open",
"test:heroku": "echo 'test:heroku' needs to be implemented",
"test:acceptance": "KIT_TEST_DIR=tmp/test-prototype-package start-server-and-test 'node cypress/scripts/run-starter-prototype' 3000 'cypress run'",
"test:acceptance:open": "KIT_TEST_DIR=tmp/test-prototype-package start-server-and-test 'node cypress/scripts/run-starter-prototype' 3000 'cypress open'",
"test:acceptance": "cross-env KIT_TEST_DIR=tmp/test-prototype-package start-server-and-test 'node cypress/scripts/run-starter-prototype' 3000 'cypress run'",
"test:acceptance:open": "cross-env KIT_TEST_DIR=tmp/test-prototype-package start-server-and-test 'node cypress/scripts/run-starter-prototype' 3000 'cypress open'",
"test:smoke": "cypress run --spec \"cypress/integration/0-smoke-tests/*\"",
"test:unit": "jest --detectOpenHandles lib",
"test:integration": "IS_INTEGRATION_TEST=true jest --detectOpenHandles --testTimeout=30000 __tests__",
"test:integration": "cross-env IS_INTEGRATION_TEST=true jest --detectOpenHandles --testTimeout=30000 __tests__",
"test": "npm run test:unit && npm run test:integration && npm run lint"
},
"dependencies": {
Expand Down Expand Up @@ -69,6 +69,7 @@
"uuid": "^8.3.2"
},
"devDependencies": {
"cross-env": "^7.0.3",
"cypress": "^10.6.0",
"eslint-plugin-cypress": "^2.12.1",
"extract-zip": "^2.0.1",
Expand Down

0 comments on commit 8bfa24b

Please sign in to comment.