Skip to content

Commit e147f48

Browse files
committed
increase timeout for windows, globally
1 parent 1e938bb commit e147f48

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"test": "concurrently npm:test:mocha npm:test:tsc npm:test:lint npm:test:prettier",
2828
"test:coverage": "c8 --check-coverage --lines 80 --per-file yarn test:mocha",
2929
"test:build": "rimraf test/build && node build.js --sourcemap --outdir=test/build \"{src,test}/**/*.{ts,js,css}\" --ignore \"test/input/**\" --ignore \"test/output/**\" --ignore \"test/preview/dashboard/**\" --ignore \"**/*.d.ts\" && cp -r templates test/build",
30-
"test:mocha": "yarn test:build && rimraf --glob test/.observablehq/cache test/input/build/*/.observablehq/cache && cross-env OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles mocha -p \"test/build/test/**/*-test.js\"",
31-
"test:mocha:serial": "yarn test:build && rimraf --glob test/.observablehq/cache test/input/build/*/.observablehq/cache && cross-env OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles mocha \"test/build/test/**/*-test.js\"",
30+
"test:mocha": "yarn test:build && rimraf --glob test/.observablehq/cache test/input/build/*/.observablehq/cache && cross-env OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles mocha --timeout 5000 -p \"test/build/test/**/*-test.js\"",
31+
"test:mocha:serial": "yarn test:build && rimraf --glob test/.observablehq/cache test/input/build/*/.observablehq/cache && cross-env OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles mocha --timeout 5000 \"test/build/test/**/*-test.js\"",
3232
"test:lint": "eslint src test --max-warnings=0",
3333
"test:prettier": "prettier --check src test",
3434
"test:tsc": "tsc --noEmit",

test/dataloaders-test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ const noopEffects: LoadEffects = {
88
output: {write() {}}
99
};
1010

11-
describe("Loader.find(root, path)", function () {
12-
if (os.platform() === "win32") this.timeout(5000);
11+
describe("Loader.find(root, path)", () => {
1312
it("a .js data loader is called with node", async () => {
1413
const loader = Loader.find("test", "dataloaders/data1.txt")!;
1514
const out = await loader.load(noopEffects);

0 commit comments

Comments
 (0)