Repository navigation
Open
Labels
type/bugSomething isn't workingSomething isn't working
Description
Describe the bug
Test files associated with components are not found even though they exist.
Steps to Reproduce
bit import trycrmr.blog/post-title-sectionbit test trycrmr.blog/post-title-section- Review jest error output.
Expected Behavior
terrycreamer in blog: bit test trycrmr.blog/post-title-section -v
✔ building component - trycrmr.blog/post-title-section@0.0.2
trycrmr.blog/post-title-section@0.0.2
tests failed
file: PostTitleSection/PostTitleSection.test.js
✖ Jest failure
Command failed: "/home/terrycreamer/.nvm/versions/node/v14.7.0/bin/node" /home/terrycreamer/dev/github-trycrmr/personal-site-with-wordpress-and-gatsby/src/components/blog/.bit/components/testers/jest/bit.envs/22.4.3/node_modules/jest/bin/jest.js dist/PostTitleSection/PostTitleSection.test.js --rootDir=dist/PostTitleSection --config=/home/terrycreamer/dev/github-trycrmr/personal-site-with-wordpress-and-gatsby/src/components/blog/.bit/components/testers/jest/bit.envs/22.4.3/dist/jest.config.js --json --outputFile="PostTitleSection-results.json"
No tests found
No files found in dist/PostTitleSection.
Make sure Jest's configuration does not exclude this directory.
To set up Jest, make sure a package.json file exists.
Jest Documentation: facebook.github.io/jest/docs/configuration.html
Pattern: dist/PostTitleSection/PostTitleSection.test.js - 0 matches
`"/home/terrycreamer/.nvm/versions/node/v14.7.0/bin/node" /home/terrycreamer/dev/github-trycrmr/personal-site-with-wordpress-and-gatsby/src/components/blog/.bit/components/testers/jest/bit.envs/22.4.3/node_modules/jest/bin/jest.js dist/PostTitleSection/PostTitleSection.test.js --rootDir=dist/PostTitleSection --config=/home/terrycreamer/dev/github-trycrmr/personal-site-with-wordpress-and-gatsby/src/components/blog/.bit/components/testers/jest/bit.envs/22.4.3/dist/jest.config.js --json --outputFile="PostTitleSection-results.json"` (exited with error code 1)
undefined
Screenshots, exceptions and logs
Specifications
- Bit version: 14.8.8
- Node version: v14.7.0
- npm / yarn version: 1.21.1
- Platform: Ubuntu 20.04.1 LTS
- Compiler / Tester (include version): ...
{
"env": {
"compiler": {
"bit.envs/compilers/react@1.0.20": {}
},
"tester": {
"bit.envs/testers/jest@22.4.3": {
"rawConfig": {
"jest-config": {}
}
}
}
},
"componentsDefaultDirectory": "components",
"packageManager": "yarn",
"dist": {
"target": "dist"
}
}
Additional context
Test should be found, but fail. Test is not found at all.
Metadata
Metadata
Assignees
Labels
type/bugSomething isn't workingSomething isn't working

Activity
[-]k[/-][+]Test file for react component not found (jest)[/+][-]Test file for react component not found (jest)[/-][+]Test file for react component not found but exists (jest)[/+]