From eec632efd9f930bd091619f36de71a4babbae350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Baji=C4=87?= Date: Tue, 10 Aug 2021 14:58:50 +0200 Subject: [PATCH] Change test script to first run build --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 79a2030..f80114f 100644 --- a/README.md +++ b/README.md @@ -497,7 +497,7 @@ server.shutdown(); // all done. ## Running tests -* `yarn build` builds pretender so it can be loaded by the tests +* `yarn build` builds pretender * `yarn test` runs tests once * `yarn test:server` runs and reruns on changes diff --git a/package.json b/package.json index 386125e..b012735 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "release": "release-it", "prepublishOnly": "npm run build && npm run tests-only", "build": "rollup --config", - "test": "npm run eslint && npm run tests-only", + "test": "npm run build && npm run eslint && npm run tests-only", "test-ci": "npm run build && npm run eslint && npm run tests-only-ci", "tests-only": "karma start --single-run", "tests-only-ci": "karma start --single-run --browsers ChromeHeadlessNoSandbox",