Skip to content

Commit 97ba2c4

Browse files
committed
Add comment explaining coverage restriction
1 parent 6699878 commit 97ba2c4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

shared/config/vitest.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { defineConfig } from 'vitest/config';
22

3+
// @vitest/coverage-v8 imports `node:inspector/promises`, which Node 18 does not
4+
// provide. Coverage is enabled on Node 20+ only so CI can still run tests on 18.x.
35
const coverageEnabled = Number(process.versions.node.split('.')[0]) >= 20;
46

57
export default defineConfig({

0 commit comments

Comments
 (0)