Skip to content

Commit 4c28fa1

Browse files
authored
Add Core tests (#7116)
* Add Core tests * No open RescriptCore * Fix imports * Build Core tests * Fix test * Run Core tests in CI * CHANGELOG
1 parent 411b7b5 commit 4c28fa1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+6204
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- Allow spreads of variants in patterns (`| ...someVariant as v => `) when the variant spread is a subtype of the variant matched on. https://github.com/rescript-lang/rescript-compiler/pull/6721
2525
- Fix the issue where dynamic imports are not working for function-defined externals. https://github.com/rescript-lang/rescript-compiler/pull/7060
2626
- Allow pattern matching on dicts. `switch someDict { | dict{"one": 1} => Js.log("one is one") }`. https://github.com/rescript-lang/rescript-compiler/pull/7059
27-
- "ReScript Core" standard library is now included in the `rescript` npm package. https://github.com/rescript-lang/rescript-compiler/pull/7108
27+
- "ReScript Core" standard library is now included in the `rescript` npm package. https://github.com/rescript-lang/rescript-compiler/pull/7108 https://github.com/rescript-lang/rescript-compiler/pull/7116
2828
- Handle absolute filepaths in gentype. https://github.com/rescript-lang/rescript-compiler/pull/7104
2929

3030
#### :bug: Bug fix

scripts/test.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,17 @@ async function runTests() {
6565
stdio: [0, 1, 2],
6666
});
6767

68-
cp.execSync(`npx mocha -t 10000 tests/tests/**/*_test.mjs`, {
68+
cp.execSync("npx mocha -t 10000 tests/tests/**/*_test.mjs", {
69+
cwd: path.join(__dirname, ".."),
70+
stdio: [0, 1, 2],
71+
});
72+
73+
cp.execSync("node tests/tests/src/core/Core_TestSuite.mjs", {
74+
cwd: path.join(__dirname, ".."),
75+
stdio: [0, 1, 2],
76+
});
77+
78+
cp.execSync("node tests/tests/src/core/Core_TempTests.mjs", {
6979
cwd: path.join(__dirname, ".."),
7080
stdio: [0, 1, 2],
7181
});

0 commit comments

Comments
 (0)