-
Notifications
You must be signed in to change notification settings - Fork 70
fix(tooling): pin NODE_ENV=test on jest invocations #724
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| "build": "yarn run -T tsc", | ||
| "build:src": "yarn run clean:dist && webpack", | ||
| "build:watch": "webpack --watch", | ||
| "test:unit": "tsc --project tsconfig.test.json && jest --coverage", | ||
| "test:unit": "tsc --project tsconfig.test.json && NODE_ENV=test jest --coverage", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Changing this package script leaves the module's own spec stale: AGENTS.md reference: AGENTS.md:L68-L68 Useful? React with 👍 / 👎. |
||
| "test:styles": "eslint", | ||
| "deploy:npm": "yarn npm publish" | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new testing convention doesn't update the code-generation template:
ai-docs/templates/new-widget/02-code-generation.md:675still emitstsc --project tsconfig.test.json && jest --coverage. New contact-center widgets generated from that template will therefore be the only packages without theNODE_ENV=testguard, so running their generatedtest:unitin a CI pod with ambientNODE_ENV=productionwill reintroduce the Reactact(...)production-build failure described here.Useful? React with 👍 / 👎.