Skip to content

Commit 2d6779d

Browse files
committed
Fix Windows build
1 parent dd12b52 commit 2d6779d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
const cp = require("child_process");
33
const path = require("path");
44
const fs = require("fs");
5+
var { rescript_exe } = require("#cli/bin_path");
56

67
const duneBinDir = require("./dune").duneBinDir;
78

@@ -61,11 +62,11 @@ async function runTests() {
6162
}
6263

6364
if (mochaTest || nodeTest) {
64-
cp.execSync(`../../rescript`, {
65+
cp.execSync(rescript_exe, {
6566
cwd: path.join(__dirname, "..", "tests/tests"),
6667
stdio: [0, 1, 2],
6768
});
68-
cp.execSync(`../../rescript`, {
69+
cp.execSync(rescript_exe, {
6970
cwd: path.join(__dirname, "..", "tests/tests_esmodule"),
7071
stdio: [0, 1, 2],
7172
});

0 commit comments

Comments
 (0)