Skip to content

Commit

Permalink
tests ~ specify increased timeouts per test (instead of globally)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Feb 9, 2021
1 parent 8c91851 commit 178da83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@
"files": [
"!**/*.test-d.ts"
],
"timeout": "30s",
"typescript": {
"rewritePaths": {
"src/": "build/cjs+tests/"
Expand Down
6 changes: 6 additions & 0 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ if (process.env.npm_config_test_for_dist) {
});
} else {
test('examples are executable without error (Deno)', (t) => {
t.timeout(30000); // 30s timeout

const egDirPath = 'eg';
const extension_regexps = [/.*[.]deno[.]ts$/i];

Expand Down Expand Up @@ -73,6 +75,8 @@ if (process.env.npm_config_test_for_dist) {
}

test('examples are executable without error (JavaScript)', (t) => {
t.timeout(30000); // 30s timeout

const egDirPath = 'eg';
const extensions = ['.js', '.cjs', '.mjs'];

Expand Down Expand Up @@ -102,6 +106,8 @@ if (process.env.npm_config_test_for_dist) {
});

test('examples are executable without error (TypeScript)', (t) => {
t.timeout(30000); // 30s timeout

const egDirPath = 'eg';
const extensions = ['.js', '.cjs', '.mjs', '.ts'];

Expand Down

0 comments on commit 178da83

Please sign in to comment.