forked from microsoft/axe-sarif-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
37 lines (36 loc) · 1.08 KB
/
jest.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
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
const rootDir = './src';
const currentDir = '<rootDir>/';
module.exports = {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/**/*.ts',
'!<rootDir>/**/*.test.ts',
'!<rootDir>/test-resources/generator/**/*.ts',
// The CLI is tested via integration tests that spawn separate node
// processes, so coverage information on this file isn't accurate
'!<rootDir>/cli.ts',
],
coverageDirectory: '../test-results/coverage',
coverageReporters: ['json', 'lcov', 'text', 'cobertura'],
displayName: 'unit tests',
moduleFileExtensions: ['ts', 'js'],
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: './test-results/',
outputName: 'junit.xml',
},
],
],
rootDir: rootDir,
testMatch: [`${currentDir}/**/*.test.(ts|js)`],
transform: {
'^.+\\.(ts)$': 'ts-jest',
},
verbose: false,
};