From 539c3de05f4e6515e4f14c42364fadc0ae778244 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Thu, 3 Dec 2026 23:52:32 -0500 Subject: [PATCH 1/2] docs: drop the --experimental-vm-modules runner notes now fails to load under --experimental-vm-modules. Describe the jest-expo runner instead and drop the notes about ignoring the VM Modules warning, which no longer appears. Fixes #597 --- .claude/skills/add-test/SKILL.md | 2 +- CONTRIBUTING.md | 3 --- DEVELOPMENT.md | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.claude/skills/add-test/SKILL.md b/.claude/skills/add-test/SKILL.md index f8c65e40..3596edd2 100644 --- a/.claude/skills/add-test/SKILL.md +++ b/.claude/skills/add-test/SKILL.md @@ -51,4 +51,4 @@ Test runtime style application on native platform. 4. **Write the test**: Follow the conventions of the domain. -5. **Run the test**: Execute `yarn test`. Note: ignore `ExperimentalWarning: VM Modules` warnings — they're expected. +5. **Run the test**: Execute `yarn test`. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fee4cebb..82b1a30e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -88,9 +88,6 @@ Remember to add tests for your pull request if possible. Run the unit tests by: yarn test ``` -> [!NOTE] -> Ignore any ExperimentalWarning: VM Modules warnings. We are using the experimental [ECMAScript Modules](https://jestjs.io/docs/ecmascript-modules) - ### Debugging Run the example via the command line with the `debug` script to enable debugging: diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 5125ac7c..ce34ddd0 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -117,12 +117,11 @@ yarn example start:debug # Rebuild + start with debug logging ## Testing -- **Runner:** Jest with experimental ESM support (`NODE_OPTIONS="--experimental-vm-modules"`) +- **Runner:** Jest with the `jest-expo` preset (`.config/jest.config.cjs`); `yarn test` runs plain `jest`, with no `NODE_OPTIONS` - **Convention:** Tests in `src/__tests__/` organized by domain (`babel/`, `compiler/`, `native/`) - **Babel tests** use `babel-plugin-tester` - **Compiler tests** verify JSON output structure - **Run specific suites:** `yarn test babel`, `yarn test compiler` -- Ignore `ExperimentalWarning: VM Modules` warnings — expected with ESM support ## Code Conventions From 3b7fe14f72331692d59f62f5b68cf26127706643 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Fri, 4 Dec 2026 00:27:36 -0500 Subject: [PATCH 2/2] docs(DEVELOPMENT): brevity in yarn test runner description --- DEVELOPMENT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index ce34ddd0..f4efbcb8 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -117,7 +117,7 @@ yarn example start:debug # Rebuild + start with debug logging ## Testing -- **Runner:** Jest with the `jest-expo` preset (`.config/jest.config.cjs`); `yarn test` runs plain `jest`, with no `NODE_OPTIONS` +- **Runner:** Jest with the `jest-expo` preset (`.config/jest.config.cjs`) - **Convention:** Tests in `src/__tests__/` organized by domain (`babel/`, `compiler/`, `native/`) - **Babel tests** use `babel-plugin-tester` - **Compiler tests** verify JSON output structure