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
And then in my package.json I am defining the following scripts:
{
..."test": "craco test --watchAll=false --coverage --json --selectProjects unit",
"test:ui": "craco test --watchAll=false --coverage --json --selectProjects playwright --showConfig"...
}
But it appears it cannot find a configuration as it throws the following error:
Error: Jest: Cannot use configuration as an object without a file path.
at readConfig (/Users/mstelze/Git/react-example/node_modules/jest-config/build/index.js:188:13)
at /Users/mstelze/Git/react-example/node_modules/jest-config/build/index.js:447:18
at Array.map ()
at readConfigs (/Users/mstelze/Git/react-example/node_modules/jest-config/build/index.js:441:10)
at async runCLI (/Users/mstelze/Git/react-example/node_modules/@jest/core/build/cli/index.js:230:59)
at async Object.run (/Users/mstelze/Git/react-example/node_modules/jest-cli/build/cli/index.js:163:37)
Any thoughts? Am I missing something in the configuration or is this function not supported?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Using Craco I am attempting to utilize the Jest's selectProjects cli option to invoke a specific defined project within the configuration.
Using this as the craco.config.js
And then in my package.json I am defining the following scripts:
But it appears it cannot find a configuration as it throws the following error:
Any thoughts? Am I missing something in the configuration or is this function not supported?
The text was updated successfully, but these errors were encountered: