You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
On test pipeline using default bitbucket-pipelines.yml i'm getting the following error:
Error: Can't find a root directory while resolving a config file path.
Provided path to resolve: test/config.json
What could I do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ya, post the solution. I'm hitting this error. I added a file to the list of setupFilesAfterEnv and now running into this
The file exists. I can't see any obvious link between adding a file to this config entry and suddenly not being able to determine the root dir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This project is from years ago. Seeing the only project that runs jest I needed to set --config flag on the npm test task. In that case, this points to test/config.json.
Running it I don't see any problem.
@Declan Shanaghymaybe seting the --config option solved the issue. If you have any problems after this, try open an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The silly mistake I was making was feeding in `--config jest.config.json` when my config file was actually js. Worth checking if google brought you here ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This did the trick! My `package.json` file was looking for a js but I am using Typescript so it was TS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.