Skip to content

Commit

Permalink
Merge pull request #334 from x4th/build-before-test
Browse files Browse the repository at this point in the history
Change test script to first run build
  • Loading branch information
xg-wang authored Aug 27, 2021
2 parents 4883e29 + eec632e commit 65fbf0a
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 65fbf0a

Please sign in to comment.