Exclude isolated-vm.ts from coverage.

This commit is contained in:
Sam Rose 2024-04-03 16:36:01 +01:00
parent afa757f21a
commit 94084db77d
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ const config: Config.InitialOptions = {
"!src/tests/**/*.{js,ts}",
// The use of coverage in the JS runner bundles breaks tests
"!src/jsRunner/bundles/**/*.{js,ts}",
// We have a polyfill for the TextDecoder class in here that gets
// injected into the vm for deserializing BSON. If it gets coveraged
// it breaks the tests.
"!src/jsRunner/vm/isolated-vm.ts",
],
coverageReporters: ["lcov", "json", "clover"],
}