Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Ensure test cases are not run 2x in watch mode. #280

Merged
merged 1 commit into from
Jun 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/neutrino-preset-karma/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ module.exports = (neutrino, opts = {}) => {
}
},
frameworks: ['mocha'],
files: [tests],
files: [{
pattern: tests,
watched: false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should watched be driven by the args.watch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should never be watched... The compiled test files are watched and that is all that is needed. No need to additionally watch the test src files.

included: true,
served: true
}],
preprocessors: {
[tests]: ['webpack'],
[sources]: ['webpack']
Expand Down