Skip to content

Commit

Permalink
[grunt] Only run mocha_setup when running tests, not every grunt task
Browse files Browse the repository at this point in the history
  • Loading branch information
archanid committed Apr 11, 2017
1 parent f412485 commit d364014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/config/simplemocha.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require('../../test/mocha_setup');

module.exports = {
options: {
timeout: 10000,
Expand All @@ -10,6 +8,7 @@ module.exports = {
},
all: {
src: [
'test/mocha_setup.js',
'test/**/__tests__/**/*.js',
'src/**/__tests__/**/*.js',
'test/fixtures/__tests__/*.js',
Expand All @@ -19,6 +18,7 @@ module.exports = {
},
api: {
src: [
'test/mocha_setup.js',
'test/unit/**/*.js'
]
}
Expand Down

0 comments on commit d364014

Please sign in to comment.