The Wayback Machine - https://web.archive.org/web/20201012065940/https://github.com/github/docs/blob/main/jest.config.js
Skip to content
Permalink
main
Go to file
 
 
Cannot retrieve contributors at this time
36 lines (34 sloc) 813 Bytes
// https://jestjs.io/docs/en/configuration.html
const isBrowser = process.env.BROWSER
const isActions = Boolean(process.env.GITHUB_ACTIONS)
module.exports = {
coverageThreshold: {
global: {
branches: 95,
functions: 95,
lines: 95,
statements: -5
}
},
preset: isBrowser
? 'jest-puppeteer'
: undefined,
reporters: isActions
? ['default', 'jest-github-actions-reporter']
: ['default'],
modulePathIgnorePatterns: [
'assets/'
],
setupFilesAfterEnv: ['jest-expect-message'],
...isBrowser ? {} : { testEnvironment: 'node' },
testPathIgnorePatterns: [
'node_modules/',
'vendor/',
'tests/helpers.js',
...isBrowser ? [] : ['tests/browser/browser.js']
],
testMatch: [
'**/tests/**/*.js'
],
testLocationInResults: isActions
}
You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.