Skip to content

Add Core tests #7116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- 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
- Fix the issue where dynamic imports are not working for function-defined externals. https://github.com/rescript-lang/rescript-compiler/pull/7060
- Allow pattern matching on dicts. `switch someDict { | dict{"one": 1} => Js.log("one is one") }`. https://github.com/rescript-lang/rescript-compiler/pull/7059
- "ReScript Core" standard library is now included in the `rescript` npm package. https://github.com/rescript-lang/rescript-compiler/pull/7108
- "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
- Handle absolute filepaths in gentype. https://github.com/rescript-lang/rescript-compiler/pull/7104

#### :bug: Bug fix
Expand Down
12 changes: 11 additions & 1 deletion scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,17 @@ async function runTests() {
stdio: [0, 1, 2],
});

cp.execSync(`npx mocha -t 10000 tests/tests/**/*_test.mjs`, {
cp.execSync("npx mocha -t 10000 tests/tests/**/*_test.mjs", {
cwd: path.join(__dirname, ".."),
stdio: [0, 1, 2],
});

cp.execSync("node tests/tests/src/core/Core_TestSuite.mjs", {
cwd: path.join(__dirname, ".."),
stdio: [0, 1, 2],
});

cp.execSync("node tests/tests/src/core/Core_TempTests.mjs", {
cwd: path.join(__dirname, ".."),
stdio: [0, 1, 2],
});
Expand Down
Loading