Skip to content

Commit

Permalink
test: use istanbul coverage provider
Browse files Browse the repository at this point in the history
This avoids instrumenting the openchemlib library, which makes it very
slow.
  • Loading branch information
targos committed Feb 11, 2025
1 parent eb5b5eb commit 7486f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"homepage": "https://github.com/cheminfo/openchemlib-utils#readme",
"devDependencies": {
"@types/node": "^22.13.1",
"@vitest/coverage-v8": "^3.0.5",
"@vitest/coverage-istanbul": "^3.0.5",
"cheminfo-build": "^1.2.1",
"cheminfo-types": "^1.8.1",
"eslint": "^9.19.0",
Expand Down
3 changes: 1 addition & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
// Tests are generally slow because they have to load OCL each time.
testTimeout: 15_000,
coverage: {
provider: 'istanbul',
include: ['src/**'],
},
include: ['./src/**/*.test.js', './src/**/*.test.ts'],
Expand Down

0 comments on commit 7486f4e

Please # to comment.