forked from microsoft/axe-sarif-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
31 lines (30 loc) · 872 Bytes
/
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
const rootDir = './src';
const currentDir = '<rootDir>/';
module.exports = {
clearMocks: true,
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.(ts)$': 'ts-jest',
},
verbose: false,
coverageDirectory: '../test-results/coverage',
displayName: 'unit tests',
moduleFileExtensions: ['ts', 'js'],
rootDir: rootDir,
collectCoverage: true,
collectCoverageFrom: ['./**/*.ts', '!./**/*.test.ts'],
coverageReporters: ['json', 'lcov', 'text', 'cobertura'],
testMatch: [`${currentDir}/**/*.test.(ts|js)`],
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: '.',
outputName: './test-results/junit.xml',
},
],
],
};