You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an internal module for deploying some AWS units, this internally have their own tests, when running yarn test with blitzjs, the tests inside the aws folder are picked up, which is undersirable (since they have their own compilation target/config)
I've tried setting testPathIgnorePatterns in the jest.config.ts file but it doesn't seem to be working, no matter what I do my tests are still picked up, could this be a problem with the blitz jest preset?
Paste all your error logs here:
$ yarn test
yarn run v1.22.17
$ jest
Determining test suites to run...Loaded env from /Users/osp/Developer/productlane/.env.test.local
Loaded env from /Users/osp/Developer/productlane/.env
PASS SERVER app/projects/queries/getProjects.test.ts
#getProjects
✓ get (13 ms)
PASS CLIENT app/pages/index.test.tsx
✓ Renders home page with Sign up button (35 ms)
FAIL CLIENT aws/test/aws.test.ts
● Test suite failed to run
Your test suite must contain at least one test.
at onResult (node_modules/@jest/core/build/TestScheduler.js:175:18)
at node_modules/@jest/core/build/TestScheduler.js:304:17
at node_modules/emittery/index.js:260:13
at Array.map (<anonymous>)
at Emittery.Typed.emit (node_modules/emittery/index.js:258:23)
Test Suites: 1 failed, 2 passed, 3 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 2.859 s, estimated 3 s
Ran all test suites in 2 projects.
error Command failed with exit code 1.
Any idea on how to mitigate this in the meantime? before it was just annoying, now I'm integrating playwright tests and now it's just confusing because jest tries to run those as well
What is the problem?
I have an internal module for deploying some AWS units, this internally have their own tests, when running
yarn test
with blitzjs, the tests inside theaws
folder are picked up, which is undersirable (since they have their own compilation target/config)I've tried setting
testPathIgnorePatterns
in thejest.config.ts
file but it doesn't seem to be working, no matter what I do my tests are still picked up, could this be a problem with the blitz jest preset?Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
The text was updated successfully, but these errors were encountered: