Skip to content

Commit

Permalink
Fix overlapping test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Joel committed Mar 10, 2020
1 parent 6eb41e3 commit dc131a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/3dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"build": "tsc",
"clean": "rm -rf ./lib",
"test": "karma start --single-run",
"test:ci": "npm run test",
"watch:test": "karma start",
"watch:tsc": "tsc -w",
"serve": "./node_modules/.bin/http-server -a 127.0.0.1 -o /demo/ -c-1",
Expand Down Expand Up @@ -64,4 +63,4 @@
"publishConfig": {
"access": "public"
}
}
}
4 changes: 4 additions & 0 deletions packages/model-viewer/karma-legacy.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ module.exports = function(config) {
// @see http://karma-runner.github.io/4.0/config/configuration-file.html
config.set({
basePath: '',
// Use special port so that tests can run in parallel
// Note that BrowserStack only allows a limited set of ports
// @see https://www.browserstack.com/question/664
port: 9877,
plugins: [
'karma-*',
],
Expand Down
1 change: 0 additions & 1 deletion packages/model-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"prepublishOnly": "npm run build && npm run create-legacy-bundles",
"test": "karma start --single-run",
"test:legacy": "karma start ./karma-legacy.conf.js --single-run",
"test:ci": "npm run test",
"check-fidelity": "node ./test/fidelity/index.js ./test/fidelity/config.json",
"compare-fidelity": "./scripts/compare-fidelity-to-ref.sh",
"update:package-lock": "rm ./package-lock.json && npm i --only=production",
Expand Down

0 comments on commit dc131a9

Please sign in to comment.