-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b2a084
commit 2f41099
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dist | ||
build | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import {defineConfig} from 'vitest/config'; | ||
|
||
// Tests run on the 'build' output and remap to 'src' with source maps, so we iclude both paths in | ||
// coverage. Istanbul's `config.excludeAfterRemap` option is not exposed by Vitest, so bundled | ||
// dependencies may be shown in the coverage report. Ignore those for now, as we expect bundling | ||
// these dependencies to be temporary. See: https://github.com/vitest-dev/vitest/discussions/5964. | ||
export default defineConfig({ | ||
test: { | ||
coverage: { | ||
provider: 'istanbul', | ||
include: ['src/**/*.ts', 'build/**/*'], | ||
include: ['src/**/*', 'build/**/*'], | ||
}, | ||
}, | ||
}); |