-
Notifications
You must be signed in to change notification settings - Fork 507
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
No tests found - exit code 1 #62
Comments
I have the same issue. edit: tested using npx and uninstalling tsdx globally and it doesn't work either. |
I upgraded to "tsdx": "^0.5.5" and i still have the same error, but it instead of watching file changes, just returns "error Command failed with exit code 1." |
Same for me, taking a closer look now |
I created the PR above. Someone should verify it still works on MacOS. Not sure why the other solution didn't work but this one does and should do the same thing. |
Also I'd prefer the default behaviour to become |
* fix testMatch to find test files correctly The problem occured in #62 and seems to come from this part: `?(*.)`. Applying the changes in this PR finds the files correctly and runs tests for `.ts` and `.tsx` files inside root and subfolders within `/test/`. Can't check if this still works on other OS than Windows though. ``` PS C:\dev\hidash> npm test > [email protected] test C:\dev\hidash > tsdx test PASS test/blah.test.ts PASS test/fix/make.test.tsx Test Suites: 2 passed, 2 total Tests: 2 passed, 2 total Snapshots: 0 total Time: 3.362s Ran all test suites. ``` * Update createJestConfig.ts
Current Behavior
After installing tsdx globally and creating a new project I ran
npm test
and it prompts the following to console:Also when filtering for
blah.test.ts
manually it won't show up.Expected behavior
To get the default test to run and pass after installing out of the box.
Your environment
The text was updated successfully, but these errors were encountered: