Skip to content

Commit

Permalink
Change yarn test to do a single run and add yarn test:watch for p…
Browse files Browse the repository at this point in the history
…revious behavior
  • Loading branch information
javan committed Jan 10, 2018
1 parent 48219cf commit de381fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion karma.conf.js
Expand Up @@ -5,6 +5,10 @@ const config = {

reporters: ["progress"],

singleRun: true,

autoWatch: false,

files: [
{ pattern: "packages/*/**/test/**/*_test.ts" }
],
Expand Down Expand Up @@ -93,7 +97,6 @@ if (process.env.CI) {
config.browsers = Object.keys(config.customLaunchers)
config.sauceLabs = { testName: "Stimulus Browser Tests" }
config.reporters = ["dots", "saucelabs"]
config.singleRun = true
}

module.exports = function(karmaConfig) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -11,6 +11,7 @@
"lint": "tslint --project tsconfig.json",
"pretest": "yarn clean && yarn lint",
"test": "karma start",
"test:watch": "yarn test --auto-watch --no-single-run",
"precompile": "yarn clean",
"compile": "tsc",
"predist": "yarn compile",
Expand Down

0 comments on commit de381fa

Please sign in to comment.