Page MenuHomeWickedGov Phorge

jest.config.js
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

jest.config.js

// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
'use strict';
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,
// An array of glob patterns indicating a set of files for
// which coverage information should be collected
collectCoverageFrom: [
'modules/ext.checkUser.tempAccountsOnboarding/components/*.(js|vue)',
'modules/ext.checkUser.tempAccounts/*.vue'
],
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: [
'/node_modules/'
],
// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
branches: 50,
functions: 80,
lines: 80,
statements: 80
}
},
// A set of global variables that need to be available in all test environments
globals: {
'vue-jest': {
babelConfig: false,
hideStyleWarn: true,
experimentalCSSCompile: true
}
},
// An array of file extensions your modules use
moduleFileExtensions: [
'js',
'json',
'vue'
],
// The paths to modules that run some code to configure or
// set up the testing environment before each test
setupFiles: [
'./jest.setup.js'
],
testEnvironment: 'jsdom',
testEnvironmentOptions: {
customExportConditions: [ 'node', 'node-addons' ]
},
transform: {
'.*\\.(vue)$': '<rootDir>/node_modules/@vue/vue3-jest'
},
testMatch: [ '**/tests/jest/**/*.test.js' ]
};

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 18, 17:39 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2b/e0/ff04c5db5b639854730bcc11f056
Default Alt Text
jest.config.js (1 KB)

Event Timeline