Skip to content

Commit

Permalink
fix(build): generate test coverage data
Browse files Browse the repository at this point in the history
Problem:
codecov cannot find coverage data:

    2024-02-02T15:33:55.6821530Z info - 2024-02-02 15:33:55,681 -- Found 0 coverage files to upload
    2024-02-02T15:33:55.6823760Z Error: No coverage reports found. Please make sure you're generating reports successfully.

Solution:
Configure jest options.
  • Loading branch information
justinmk committed Feb 2, 2024
1 parent 884df1a commit ddf6d87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
coverage/
lib/
nvimrc
.DS_Store
Expand Down
2 changes: 2 additions & 0 deletions packages/neovim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts$",
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"coverageReporters": ["json", "html"],
"testEnvironmentOptions": {
"url": "http://localhost"
}
Expand Down

0 comments on commit ddf6d87

Please sign in to comment.