From dfbb3d5c3bb92800a3dde7ede44b70ef19b9d431 Mon Sep 17 00:00:00 2001 From: Will Dyson Date: Thu, 12 Jan 2023 12:52:12 +0000 Subject: [PATCH] Remove build action from test script and document --- README.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3607fb9..7000880 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ expiry date of the cookie. - `VERSION` the current version as defined in package.json + ## Compiling This project uses [Webpack](https://webpack.js.org/) and [Babel](https://babeljs.io/) @@ -143,6 +144,8 @@ LOG_TO_SPLUNK=true npm run build:production ## Tests +The tests require the javascript to be compiled. See the [Compiling](#compiling) section above. + To run the [Jest](https://jestjs.io/en/) tests ```sh diff --git a/package.json b/package.json index 2c255ed..a668af3 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build:production": "webpack --mode=production", "lint": "eslint .", "start": "npm run watch & npm run testserver", - "test": "npm run build && start-server-and-test testserver http://localhost:8080 test-all", + "test": "start-server-and-test testserver http://localhost:8080 test-all", "test-all": "npm-run-all --continue-on-error test:*", "test:unit": "jest --runInBand --coverage=true", "test:integration": "jest -c tests/integration-tests/jest.config.js --coverage=true",