Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
12636c9
Initial test setup
nojaf Sep 8, 2025
f676219
Undo unwanted stuff
nojaf Sep 8, 2025
adb9be1
biome...
nojaf Sep 8, 2025
9087b0d
Add deno sample
nojaf Sep 9, 2025
da9cfe2
Compile again
nojaf Sep 9, 2025
de5f9d8
Add webapi to deno sample
nojaf Sep 9, 2025
9e8ea3f
Failing tests, runtime not found.
nojaf Sep 9, 2025
687c2f1
ignore history folder
nojaf Sep 9, 2025
0bd0836
Add -runtime-path
nojaf Sep 9, 2025
793db89
Resolve runtime via helper
nojaf Sep 9, 2025
b83ead1
Remove -nostdlib from test projects
nojaf Sep 9, 2025
0428735
Pass rescript runtime as environment variable
nojaf Sep 9, 2025
37ab3ea
Consume RESCRIPT_RUNTIME
nojaf Sep 9, 2025
babaf7d
Test projects now consume rescript/runtime
nojaf Sep 9, 2025
d940ecc
Add RESCRIPT_RUNTIME to bash tests
nojaf Sep 9, 2025
7d07617
Use actual deno to invoke tests
nojaf Sep 9, 2025
d7d2ebe
Add resolvePackageRoot to artifacts file
nojaf Sep 9, 2025
8199554
Don't run tests in parallel because of git index conflicts
nojaf Sep 9, 2025
042c0a2
Comment out failing test for now
nojaf Sep 11, 2025
3bf69bc
Include runtime argument in bsb.js
nojaf Sep 11, 2025
07a3303
ignore all lib/bs
nojaf Sep 11, 2025
7a43f22
Add runtime as well to bsc.js
nojaf Sep 11, 2025
575527b
Add -runtime-path to bsb as well.
nojaf Sep 11, 2025
66c22b1
Renamed artifact
nojaf Sep 11, 2025
0c01e92
Remove new rewatch tests
nojaf Sep 12, 2025
ba79149
Revert yarn.lock
nojaf Sep 12, 2025
1287dd3
Add changelog entry
nojaf Sep 12, 2025
88b0483
Merge branch 'master' into moar-rewatch-tests
nojaf Sep 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test projects now consume rescript/runtime
  • Loading branch information
nojaf committed Sep 9, 2025
commit babaf7d803aa219ad57974d6261c1098a1f87163
3 changes: 2 additions & 1 deletion tests/rewatch_tests/repos/deno/single-project/rescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"in-source": true,
"suffix": ".res.js"
},
"compiler-flags": []
"compiler-flags": [],
"dependencies": ["@rescript/webapi"]
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions tests/rewatch_tests/repos/npm/single-project/src/Demo.res.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Generated by ReScript, PLEASE EDIT WITH CARE


console.log("Hello, world!__");

/* Not a pure module */
9 changes: 6 additions & 3 deletions tests/rewatch_tests/src/Setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@ async function commands(workingDirectory) {
};
let install = async () => {
await processUtils.npm(["install"], {
cwd: workingDirectory
cwd: workingDirectory,
stdio: "inherit"
});
};
let npm = {
install: install
};
let install$1 = async () => {
await processUtils.deno(["install"], {
cwd: workingDirectory
cwd: workingDirectory,
stdio: "inherit"
});
};
let deno = {
Expand All @@ -55,7 +57,8 @@ async function commands(workingDirectory) {
"checkout",
"."
], {
cwd: workingDirectory
cwd: workingDirectory,
stdio: "inherit"
});
};
return {
Expand Down
Loading