-
Notifications
You must be signed in to change notification settings - Fork 155
/
jest.extension.config.js
26 lines (25 loc) · 1020 Bytes
/
jest.extension.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
module.exports = {
testEnvironment: 'node',
// Be specific, as we don't want mocks from other test suites messing this up.
roots: [path.join(__dirname, 'dist/test/extension')],
moduleFileExtensions: ['js'],
testMatch: [path.join(__dirname, 'dist/test/extension/**/*.test.js')],
setupFiles: [path.join(__dirname, 'dist/test/setup.js')],
collectCoverage: true,
verbose: true,
debug: true,
// Must for debugging and VSC integration.
runInBand: true,
cache: false,
// Custom reporter so we can override where messages are written.
// We want output written into console, not process.stdout streams.
// See ./build/postInstall.js
reporters: ['jest-standard-reporter'],
useStderr: true,
// Ensure it dies properly on CI (test step didn't exit).
forceExit: true,
// Ensure it dies properly on CI (test step didn't exit).
detectOpenHandles: true,
};