-
Notifications
You must be signed in to change notification settings - Fork 14
0 results when using groups runner? #42
Comments
Same issue 👀 Haven't figured out yet what's happening. Wondering if it's related to versions? I just got to the "oh, they run when commenting out the runner in config" realization |
@wilcoxpdfrd Are you working on a monorepo/with npm workspaces? I'm finding that when I run npm install with workspaces, groups is failing. When I install in each folder and remove workspaces, I get success. |
Not sure if that's the culprit, I'm going to just tear out and go with regex for now until someone smarter than I can understand what's happening (Feels like modules path/install thing) |
@seanspeaks Nope, not installing with workspaces ... interesting that would cause the issue we're seeing, but doesn't explain what's happening in my case ... By regex you mean in jest.config.js testMatch I assume? Interestingly we have also defined regexes to our test folder paths, and I played around with that to see if that could be interfering with groups without success. But no one else on my team sharing our repo has the issue, so that doesn't seem to be the problem either. |
Got a hint from another engineer who saw this issue on an older version of node, he downgraded npm which fixed the issue for him ... what I did for my project (which I realize now is on node 12 - I'll be addressing upgrading versions soon as I know 12 is EOL) is: // this selects node v16.0.0 for me // then //deleted node_modules folder and package-lock.js in my project, then: npm i // then // and got Yay! I'll leave this open for a bit in case the problem comes back or for other comments ... |
I encountered this bug too in |
We noticed the same issue with "devDependencies": {
"jest": "28.1.1",
"jest-runner-groups": "2.2.0",
"ts-jest": "28.0.5"
} |
Having a weird issue that just started on my macbook. We've been using this runner for some time with our node projects but recently when I merged a local git project from master, and did an npm update, when I try to run a group of tests:
jest --config ./jest.config.unit.js --collectCoverage --collectCoverageFrom="src/**/*.js" --coverageReporters clover json lcov text text-summary cobertura --coverageDirectory="./coverage" --group=ut --reporters=default --reporters=jest-junit --watchAll=false --verbose --runInBand --forceExit --detectOpenHandles"
I'm just seeing results:
Test Suites: 0 of 9 total
Tests: 0 total
Snapshots: 0 total
Time: 0.456 s, estimated 2 s
Ran all test suites.
The test files include:
/**
*/
So it seems to not recognize the group attribute in the test files perhaps? If I remove the runner: 'groups' from jest.config.unit.js-module.exports json the tests run fine:
Test Suites: 9 passed, 9 total
Tests: 54 passed, 54 total
Snapshots: 0 total
Time: 3.801 s, estimated 44 s
Ran all test suites.
Really stumped; can't find anything online to help. I've tried re-installing the runner and played around with things ... no luck ... And my team mates don't have this issue when they pull my branch. Any thoughts?
Thanks,
Paul
The text was updated successfully, but these errors were encountered: