Semantic Diff

#9447 Group the small runtime test suites

4 commits

af8417400f57919245e5932d0d877f0dbd6470ac..pr-9447

9a65e199c · cknitt + Claude · Nov 27, 2026, 06:20 UTC

Group the small runtime test suites

belt_tests, commonjs_tests and docstring_tests were top-level siblings of suites twenty to fifty times their size. They test the runtime and Belt, so they now live in tests/runtime_tests as belt, commonjs and docstrings. tests/dependencies held no tests, only the rescript-react project other suites build against, and is now tests/fixtures. The one-file cli_tests suite tests the npm package's platform mapping and moves to tests/package_tests.

177ba7e33 · cknitt + Claude · Nov 27, 2026, 06:23 UTC

Drop the fallback to tests/tests in the benchmarks

The base of this pull request already has tests/compiler_tests.

9b8cd53ce · cknitt + Claude · Nov 27, 2026, 06:42 UTC

Find the benchmarks' React fixture under its new name

compilerBenchmarks.js built the path to the rescript-react project from separate pieces, so the move to tests/fixtures missed it. It falls back to tests/dependencies for a base from before the move; the next pull request in the stack drops the fallback.

5c355a7ea · cknitt + Claude · Nov 27, 2026, 07:29 UTC

Move the vendored rescript-react to packages/rescript-react

It is no test fixture: the playground depends on it and ships its compiled interfaces, and most test projects build against it. It now sits next to the playground packages, outside packages/@rescript, so pkg-pr-new, which publishes packages/@rescript/*, leaves it out.

The yarn constraint that gives our packages their release metadata matched every @rescript-scoped workspace under packages, so it would have set the rescript version on this one too. It now matches the root and packages/@rescript only. A new constraint requires "private": true for every other workspace, because the publish workflow publishes all workspaces that are not private.