Skip to content

Conversation

@mkantor
Copy link
Owner

@mkantor mkantor commented Aug 4, 2025

While testing Node.js 22.18 I noticed that the way I'm running node --test wasn't playing nicely with the fact that type stripping is now enabled by default. node --test was trying to execute the *.test.ts files (in addition to the compiled *.test.js files), but examples.test.ts failed due to an incorrect path to the please CLI.

"clean": "rm -rf dist* *.tsbuildinfo",
"test": "npm run build:tests && node --test --experimental-test-snapshots",
"test-update-snapshots": "npm run build:tests && node --test --test-update-snapshots --experimental-test-snapshots"
"test": "npm run build:tests && node --test --no-experimental-strip-types",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point I should try out a workflow which uses Node's type stripping capabilities and skips compilation (but not today).

@mkantor mkantor merged commit 3d2cd18 into main Aug 5, 2025
1 check passed
@mkantor mkantor deleted the upgrade-dependencies-and-runtime branch August 5, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants