-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
31 lines (30 loc) · 841 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) 2022 - 2023.
// Haixing Hu, Qubit Co. Ltd.
//
// All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
module.exports = {
verbose: true,
testMatch: ['**/test/**/*.test.js'],
testEnvironment: 'jest-environment-jsdom-global',
testEnvironmentOptions: {
customExportConditions: ['node', 'node-addons'],
},
moduleFileExtensions: ['js', 'vue'],
transform: {
'\\.js$': 'babel-jest',
'^.+\\.vue$': '@vue/vue3-jest',
},
// transformIgnorePatterns: [
// '/node_modules/(?!@haixing_hu)',
// ],
setupFilesAfterEnv: [
'jest-extended/all',
],
collectCoverage: true,
coverageDirectory: './coverage',
collectCoverageFrom: ['**/src/**/*.js'],
};