Skip to content

Commit

Permalink
Change test script to first run build
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Bajić committed Aug 10, 2021
1 parent 4883e29 commit eec632e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit eec632e

Please sign in to comment.