-
Notifications
You must be signed in to change notification settings - Fork 145
/
jest.config.js
33 lines (31 loc) · 1020 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
32
33
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
const path = require('path');
const baseConfig = require('../../../jest.config.base');
const rootDir = '../../../';
const currentDir = '<rootDir>/src/tests/electron';
module.exports = {
...baseConfig,
collectCoverage: false,
displayName: 'electron tests',
globalSetup: `${currentDir}/setup/global-setup.ts`,
globalTeardown: `${currentDir}/setup/global-teardown.ts`,
globals: {
rootDir: path.resolve(__dirname, rootDir),
},
moduleDirectories: [...baseConfig.moduleDirectories, 'src'],
moduleFileExtensions: ['ts', 'tsx', 'js'],
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: '<rootDir>/test-results/electron/',
outputName: 'junit-electron.xml',
},
],
],
rootDir: rootDir,
roots: [currentDir],
setupFilesAfterEnv: [`${currentDir}/setup/test-setup.ts`],
};