Skip to content

Commit

Permalink
Increased timeouts for TypeScript tests, since they're slooooow
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Dec 9, 2018
1 parent 970e304 commit c4b5ed7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"scripts": {
"lint": "eslint bin lib test/fixtures test/specs",
"test": "npm run lint && mocha",
"test": "mocha && npm run lint",
"coverage": "nyc --reporter=text --reporter=lcov mocha",
"upgrade": "npm-check -u",
"bump": "bump --prompt --tag --push --all",
Expand Down
8 changes: 4 additions & 4 deletions test/specs/typescript.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const expect = require("chai").expect;
describe("TypeScript support", () => {
beforeEach(function () {
// Increase the test timeouts to allow sufficient time for Browserify transforms
mocha.increaseTimeout(this.currentTest, 30000);
mocha.increaseTimeout(this.currentTest, 45000);
});

it("should automatically enable TypeScript if the entry file has a .ts extenstion", (done) => {
Expand Down Expand Up @@ -151,21 +151,21 @@ describe("TypeScript support", () => {
expect(stdout).to.contain("typescript/src/say/index.ts --> typescript/dist/say/index.coverage.js");

assert.directoryContents("typescript/dist", [
"hello-world.coverage.js",
"hello-world.js",
"hello-world.js.map",
"hello-world.min.js",
"hello-world.min.js.map",
"hello-world.coverage.js",
"index.coverage.js",
"index.js",
"index.js.map",
"index.min.js",
"index.min.js.map",
"index.coverage.js",
"say/index.coverage.js",
"say/index.js",
"say/index.js.map",
"say/index.min.js",
"say/index.min.js.map",
"say/index.coverage.js",
]);

assert.fileContents("typescript/dist", ["index.js", "hello-world.js", "say/index.js"], (contents) => {
Expand Down
2 changes: 1 addition & 1 deletion test/specs/watch.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("simplifyify --watch", () => {

beforeEach(function () {
// Increase the test timeouts to allow sufficient time for multiple Browserify builds
testTimeout = mocha.increaseTimeout(this.currentTest, 15000);
testTimeout = mocha.increaseTimeout(this.currentTest, 30000);

// Reset variables that track modified files
modifiedFilePath = undefined;
Expand Down

0 comments on commit c4b5ed7

Please sign in to comment.