Opps, Something went wrong. Check the terminal for exact error message!
Is this a bug report or a feature request?
Bug
Version Info
- Version of Majestic: 1.4.1
- Version of Jest: 24.7.1
- Version of Node: 10.13.0
- Operating System: OSX
Reproduction Repo
Run npx majestic in a folder where yarn jest works fine and has jest.config.js, then I just see this:

There's no error message in the terminal and one error in dev console. My jest.config.js looks like this and the project is a yarn monorepo.
module.exports = require('common-module/jest')(`${__dirname}/packages`);
Would you please run majestic with the --debug flag and share a screenshot or the output?
Here's the output from --debug
❯ npx majestic --debug
npx: installed 31 in 5.923s
⚡ Majestic v1.4.1 is running at http://localhost:4000
ℹ Majestic configuration from Package.json: {} Config Resolver 11:08:03
ℹ Path of resolved Jest script: .../node_modules/jest
ℹ Resolved Majestic config : { Config Resolver 11:08:03
jestScriptPath: '".../node_modules/jest/bin/jest.js"',
args: [],
env: {}
}
ℹ Error occured while obtaining Jest cofiguration for coverage report Results 11:08:04
If I try to disable coverage, there's no visible change in the output.
That's unfortunate. Would you be able to provide a sample repository?
Same error
same issue +1
@Raathigesh - Could you please let me what are the details needed please? I am facing the same issue too, so i can share the same
@Raathigesh - works now. Please ignore. Added the below in package.json which is given in Issue-87. :+1:
"majestic": { "jestScriptPath": ".\node_modules\jest\bin\jest.js", "args": [ "test" ] },
I'm also getting the same error
Resolved Majestic config : {
jestScriptPath: '"........./node_modules/jest/bin/jest.js"',
args: [
'test:dev'
],
env: {}
}
ℹ Error occured while obtaining Jest cofiguration for coverage report SyntaxError: Unexpected token ● in JSON at position 0
I'm also getting the same error
Resolved Majestic config : { jestScriptPath: '"........./node_modules/jest/bin/jest.js"', args: [ 'test:dev' ], env: {} } ℹ Error occured while obtaining Jest cofiguration for coverage report SyntaxError: Unexpected token ● in JSON at position 0
solved with a yarn install
I'm still having this issue when using a basic NextJS setup. Tried all of the solutions above and nothing helped.
I'm still having this issue on my React Native storybook project
Same error with a basic Next.js setup. Jest is running good, but majestic just throw me a ℹ Error occured while obtaining Jest cofiguration for coverage report SyntaxError: Unexpected token ● in JSON at position 0
Any workaround ?