Skip to content

Commit 186893c

Browse files
justin808claude
andcommitted
Fix Jest integration in CI - add Jest to test scripts
Jest was not being run in CI at all! The test:client script was broken (tried to cd to client/ which has no package.json). Changes: - Fixed test:client to run 'yarn jest' directly - Added jest to main test script (build:test && lint && jest) - Now our SWC configuration test will actually be run in CI This ensures that client/__tests__/swc-config.spec.js and all other Jest tests are executed as part of the test suite. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8cdfe62 commit 186893c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"lint:eslint": "yarn eslint client --ext \".js,.jsx,.ts\"",
2525
"lint:prettier": "yarn prettier \"**/*.@(js|jsx)\" --list-different",
2626
"lint": " yarn lint:eslint --fix && yarn lint:prettier --w",
27-
"test": "yarn build:test && yarn lint",
28-
"test:client": "cd client && yarn test",
27+
"test": "yarn build:test && yarn lint && yarn jest",
28+
"test:client": "yarn jest",
2929
"build:test": "rm -rf public/packs-test && RAILS_ENV=test NODE_ENV=test bin/shakapacker",
3030
"build:dev": "rm -rf public/packs && RAILS_ENV=development NODE_ENV=development bin/shakapacker",
3131
"build:clean": "rm -rf public/packs || true"

0 commit comments

Comments
 (0)