Add CLAUDE.md and refactor jest-esm scripts across packages#1966
Open
curtisman wants to merge 1 commit intomicrosoft:mainfrom
Open
Add CLAUDE.md and refactor jest-esm scripts across packages#1966curtisman wants to merge 1 commit intomicrosoft:mainfrom
curtisman wants to merge 1 commit intomicrosoft:mainfrom
Conversation
- Add CLAUDE.md with AI assistant instructions for build/test, architecture, conventions, and environment setup - Add auto-approve patterns for common pnpm commands in .vscode/settings.json - Extract reusable 'jest-esm' script in 21 package.json files to DRY up the repeated 'node --no-warnings --experimental-vm-modules jest' invocation - Update test:local, test, test:live, and test:integration scripts to use 'pnpm run jest-esm' instead of the full node command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLAUDE.mdwith AI assistant instructions covering build/test commands, architecture overview, coding conventions, and environment setup.vscode/settings.jsonjest-esmscript in 21package.jsonfiles to DRY up the repeatednode --no-warnings --experimental-vm-modules jestinvocationtest:local,test,test:live,test:integration) to usepnpm run jest-esminstead of the full node commandMotivation
The long
node --no-warnings --experimental-vm-modules ./node_modules/jest/bin/jest.jsinvocation was duplicated across every test-related script in every package. Extracting it into a singlejest-esmscript per package makes the scripts easier to read and maintain, and provides a consistent alias documented inCLAUDE.mdfor running individual tests.