Skip to content

Commit f2b6aa1

Browse files
committed
fix: Bump the test timeout to 20 sec
1 parent 5cb2d40 commit f2b6aa1

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"build": "dotnet fsi build_old.fsx",
1010
"publish": "dotnet fsi build_old.fsx publish",
1111
"test": "dotnet run --project src/Fable.Build/Fable.Build.fsproj -- test",
12-
"tests": "node --test-reporter spec --test-timeout 10000 --test temp/tests/JavaScript/Main/Main.js",
12+
"tests": "node --test-reporter spec --test-timeout 20000 --test temp/tests/JavaScript/Main/Main.js",
1313
"tests-ts": "tsc -p temp/tests/TypeScript --outDir temp/tests/TypeScriptCompiled",
14-
"posttests-ts": "node --test-reporter spec --test-timeout 10000 --test temp/tests/TypeScriptCompiled/temp/tests/TypeScript/Main.js",
14+
"posttests-ts": "node --test-reporter spec --test-timeout 20000 --test temp/tests/TypeScriptCompiled/temp/tests/TypeScript/Main.js",
1515
"build-compiler-js": "dotnet fable src/fable-compiler-js/src/fable-compiler-js.fsproj -o build/fable-compiler-js/out",
1616
"postbuild-compiler-js": "rollup build/fable-compiler-js/out/app.js --file src/fable-compiler-js/dist/app.js --format umd --name Fable",
1717
"minify-compiler-js": "terser src/fable-compiler-js/dist/app.js -o src/fable-compiler-js/dist/app.min.js --mangle --compress",
1818
"tests-compiler-js": "node src/fable-compiler-js/dist/app.js tests/Main/Fable.Tests.fsproj temp/tests-compiler-js",
19-
"posttests-compiler-js": "node --test-reporter spec --test-timeout 10000 --test temp/tests-compiler-js/Main.js"
19+
"posttests-compiler-js": "node --test-reporter spec --test-timeout 20000 --test temp/tests-compiler-js/Main.js"
2020
},
2121
"dependencies": {
2222
"@types/node": "^25.8.0",

src/Fable.Build/Test/Integration.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let private testProjectConfig (projectDirName: string) (configuration: string op
2929
|> CmdLine.appendPrefix "--exclude" "Fable.Core"
3030
|> CmdLine.appendPrefixIfSome "--configuration" configuration
3131

32-
let testArgs = "--test-reporter spec --test-timeout 10000 --test Main.js"
32+
let testArgs = "--test-reporter spec --test-timeout 20000 --test Main.js"
3333

3434
Command.Fable(fableArgs)
3535

src/Fable.Build/Test/JavaScript.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ let private testAdaptive (isWatch: bool) =
5656
CmdLine.empty
5757
|> CmdLine.appendRaw "node"
5858
|> CmdLine.appendPrefix "--test-reporter" "spec"
59-
|> CmdLine.appendPrefix "--test-timeout" "10000"
59+
|> CmdLine.appendPrefix "--test-timeout" "20000"
6060
|> CmdLine.appendPrefix "--test" (destinationDir </> "Main.js")
6161
|> CmdLine.toString
6262

@@ -96,7 +96,7 @@ let private handleMainTests (isWatch: bool) (noDotnet: bool) =
9696
CmdLine.empty
9797
|> CmdLine.appendRaw "node"
9898
|> CmdLine.appendPrefix "--test-reporter" "spec"
99-
|> CmdLine.appendPrefix "--test-timeout" "10000"
99+
|> CmdLine.appendPrefix "--test-timeout" "20000"
100100
|> CmdLine.appendPrefix "--test" (destinationDir </> "Main.js")
101101
|> CmdLine.toString
102102

src/Fable.Build/Test/Standalone.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ open SimpleExec
1111
let private mainTestProject =
1212
Path.Resolve("tests", "Js", "Main", "Fable.Tests.fsproj")
1313

14-
let private testArgs = "--test-reporter spec --test-timeout 10000 --test Main.js"
14+
let private testArgs = "--test-reporter spec --test-timeout 20000 --test Main.js"
1515

1616
let handleStandaloneFast () =
1717
let fableCompilerJsDir = Path.Resolve("src", "fable-compiler-js", "src")

src/Fable.Build/Test/TypeScript.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ let handle (args: string list) =
2626
let tscArgs = $"tsc --outDir {tscDest}"
2727

2828
let testArgs =
29-
"--test-reporter spec --test-timeout 10000 --test temp/tests/TypeScript/Main.js"
29+
"--test-reporter spec --test-timeout 20000 --test temp/tests/TypeScript/Main.js"
3030

3131
let fableArgs =
3232
CmdLine.concat

src/fable-standalone/test/bench-compiler/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
"build-tests-ts": "npm run build-tests-js -- --fableLib ./out-lib-ts --lang TypeScript",
7171
"build-tests-opt": "npm run build-tests-js -- --optimize",
7272
"build-tests-node": "npm run fable-node -- ../../../../tests/Js/Main/Fable.Tests.fsproj --outDir ./out-tests --fableLib ./out-lib-js --sourceMaps",
73-
"postbuild-tests-js": "node --test-reporter spec --test-timeout 10000 --test out-tests/Main.js",
74-
"postbuild-tests-node": "node --test-reporter spec --test-timeout 10000 --test out-tests/Main.js",
73+
"postbuild-tests-js": "node --test-reporter spec --test-timeout 20000 --test out-tests/Main.js",
74+
"postbuild-tests-node": "node --test-reporter spec --test-timeout 20000 --test out-tests/Main.js",
7575

7676
"build-tests-rust": "npm run fable -- ../../../../tests/Rust/Fable.Tests.Rust.fsproj --outDir ./out-tests-rust --fableLib ./out-lib-rust --lang Rust",
7777
"build-tests-dart": "npm run fable -- ../../../../tests/Dart/src/Fable.Tests.Dart.fsproj --outDir ./out-tests-dart --fableLib ./out-lib-dart --lang Dart",

0 commit comments

Comments
 (0)