Page MenuHomeWickedGov Phorge

jest.config.js
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

jest.config.js

'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 fo
// which coverage information should be collected
collectCoverageFrom: [
'resources/**/*.js'
],
// 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/',
'/resources/legacy/',
'/resources/lib/',
'/resources/ve-cm/',
'/resources/workers/'
],
// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
branches: 50,
functions: 58,
lines: 65,
statements: 65
}
},
// An array of file extensions your modules use
moduleFileExtensions: [
'js',
'json'
],
// The paths to modules that run some code to configure or
// set up the testing environment before each test
setupFiles: [
'./tests/jest/setup.js'
],
// Simulates a real browser environment.
testEnvironment: 'jsdom',
// Ignore these directories when locating tests to run.
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/resources/'
]
};

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 19, 12:09 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
75/23/b71fa4fa24a9bb4d014a445e04c0
Default Alt Text
jest.config.js (1 KB)

Event Timeline