Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

neutrino-preset-jest coverage doesn't work #351

Closed
mesteche opened this issue Oct 8, 2017 · 1 comment · Fixed by #369
Closed

neutrino-preset-jest coverage doesn't work #351

mesteche opened this issue Oct 8, 2017 · 1 comment · Fixed by #369

Comments

@mesteche
Copy link

mesteche commented Oct 8, 2017

I'm having trouble to get the neutrino-preset-jest working properly.
I can test my functions but i can't get a proper coverage report:

$ yarn coverage
yarn run v1.1.0
$ neutrino test --use neutrino-preset-react neutrino-preset-jest --coverage
 PASS  test/simple_test.js
  simple
    ✓ should return 7 (3ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        0.51s, estimated 1s
Ran all test suites.
----------|----------|----------|----------|----------|----------------|
File      |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
----------|----------|----------|----------|----------|----------------|
All files |  Unknown |  Unknown |  Unknown |  Unknown |                |
----------|----------|----------|----------|----------|----------------|
Done in 1.65s.

Here is my package.json

{
"scripts": {
    "start": "neutrino start --use neutrino-preset-react",
    "test": "neutrino test --use neutrino-preset-react neutrino-preset-jest",
    "coverage": "npm test -- --coverage",
    "build": "neutrino build --use neutrino-preset-react"
  },
  "devDependencies": {
    "enzyme": "^3.1.0",
    "neutrino": "^7.1.0",
    "neutrino-preset-jest": "^7.1.0",
    "neutrino-preset-react": "^7.1.0"
  },
  "dependencies": {
    "react": "^16.0.0",
    "react-dom": "^16.0.0"
  }
}

Any idea ?

@eliperelman
Copy link
Member

Sorry for the delay, figuring out the right solution for this one was a little tricky. I have a PR open that should fix this soon. Thank you for your patience!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants