Skip to content

Commit

Permalink
Increase the timeout to 30 second.
Browse files Browse the repository at this point in the history
- Move the timeout setting to mocha CLI.
- TODO: investigate why the test case needs so many time!
  • Loading branch information
lijunle committed Nov 14, 2015
1 parent f75e072 commit c9f8384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"scripts": {
"start": "mocha --bail --watch --require intelli-espower-loader",
"test": "istanbul cover _mocha --report text --report html --report lcov -- -R spec",
"test": "istanbul cover _mocha --report text --report html --report lcov -- -R spec --timeout 30000",
"posttest": "npm run lint",
"lint": "eslint lib test"
},
Expand Down
4 changes: 1 addition & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export {foo}
var fixturePath = 'node_modules/fixture'

// Specs
describe('babel-plugin-add-module-exports', function () {
this.timeout(5000) // wait for load the `babel-preset-es2015`

describe('babel-plugin-add-module-exports', () => {
beforeEach(() => {
try {
rimraf.sync(fixturePath)
Expand Down

0 comments on commit c9f8384

Please sign in to comment.