jest-config
Advanced tools
Comparing version 29.2.2 to 29.3.0
@@ -67,2 +67,3 @@ /** | ||
projectIndex?: number, | ||
isProjectOptions?: boolean, | ||
): Promise<{ | ||
@@ -69,0 +70,0 @@ hasDeprecationWarnings: boolean; |
@@ -156,2 +156,6 @@ 'use strict'; | ||
); | ||
const packageRoot = | ||
typeof packageRootOrConfig === 'string' | ||
? path().resolve(packageRootOrConfig) | ||
: undefined; | ||
const {options, hasDeprecationWarnings} = await (0, _normalize.default)( | ||
@@ -161,3 +165,4 @@ initialOptions, | ||
configPath, | ||
projectIndex | ||
projectIndex, | ||
skipArgvConfigOption && !(packageRoot === parentConfigDirname) | ||
); | ||
@@ -164,0 +169,0 @@ const {globalConfig, projectConfig} = groupOptions(options); |
@@ -94,3 +94,3 @@ 'use strict'; | ||
var _ReporterValidationErrors = require('./ReporterValidationErrors'); | ||
var _ValidConfig = _interopRequireDefault(require('./ValidConfig')); | ||
var _ValidConfig = require('./ValidConfig'); | ||
var _color = require('./color'); | ||
@@ -527,3 +527,4 @@ var _constants = require('./constants'); | ||
configPath, | ||
projectIndex = Infinity | ||
projectIndex = Infinity, | ||
isProjectOptions | ||
) { | ||
@@ -535,3 +536,5 @@ const {hasDeprecationWarnings} = (0, _jestValidate().validate)( | ||
deprecatedConfig: _Deprecated.default, | ||
exampleConfig: _ValidConfig.default, | ||
exampleConfig: isProjectOptions | ||
? _ValidConfig.initialProjectOptions | ||
: _ValidConfig.initialOptions, | ||
recursiveDenylist: [ | ||
@@ -538,0 +541,0 @@ // 'coverageThreshold' allows to use 'global' and glob strings on the same |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.default = void 0; | ||
exports.initialProjectOptions = exports.initialOptions = void 0; | ||
function _jestRegexUtil() { | ||
@@ -221,3 +221,117 @@ const data = require('jest-regex-util'); | ||
}; | ||
var _default = initialOptions; | ||
exports.default = _default; | ||
exports.initialOptions = initialOptions; | ||
const initialProjectOptions = { | ||
automock: false, | ||
cache: true, | ||
cacheDirectory: '/tmp/user/jest', | ||
clearMocks: false, | ||
coveragePathIgnorePatterns: [NODE_MODULES_REGEXP], | ||
dependencyExtractor: '<rootDir>/dependencyExtractor.js', | ||
detectLeaks: false, | ||
detectOpenHandles: false, | ||
displayName: (0, _jestValidate().multipleValidOptions)('test-config', { | ||
color: 'blue', | ||
name: 'test-config' | ||
}), | ||
errorOnDeprecated: false, | ||
extensionsToTreatAsEsm: [], | ||
fakeTimers: { | ||
advanceTimers: (0, _jestValidate().multipleValidOptions)(40, true), | ||
doNotFake: [ | ||
'Date', | ||
'hrtime', | ||
'nextTick', | ||
'performance', | ||
'queueMicrotask', | ||
'requestAnimationFrame', | ||
'cancelAnimationFrame', | ||
'requestIdleCallback', | ||
'cancelIdleCallback', | ||
'setImmediate', | ||
'clearImmediate', | ||
'setInterval', | ||
'clearInterval', | ||
'setTimeout', | ||
'clearTimeout' | ||
], | ||
enableGlobally: true, | ||
legacyFakeTimers: false, | ||
now: 1483228800000, | ||
timerLimit: 1000 | ||
}, | ||
filter: '<rootDir>/filter.js', | ||
forceCoverageMatch: ['**/*.t.js'], | ||
globalSetup: 'setup.js', | ||
globalTeardown: 'teardown.js', | ||
globals: { | ||
__DEV__: true | ||
}, | ||
haste: { | ||
computeSha1: true, | ||
defaultPlatform: 'ios', | ||
enableSymlinks: false, | ||
forceNodeFilesystemAPI: true, | ||
hasteImplModulePath: '<rootDir>/haste_impl.js', | ||
hasteMapModulePath: '', | ||
platforms: ['ios', 'android'], | ||
retainAllFiles: false, | ||
throwOnModuleCollision: false | ||
}, | ||
id: 'string', | ||
injectGlobals: true, | ||
moduleDirectories: ['node_modules'], | ||
moduleFileExtensions: [ | ||
'js', | ||
'mjs', | ||
'cjs', | ||
'json', | ||
'jsx', | ||
'ts', | ||
'tsx', | ||
'node' | ||
], | ||
moduleNameMapper: { | ||
'^React$': '<rootDir>/node_modules/react' | ||
}, | ||
modulePathIgnorePatterns: ['<rootDir>/build/'], | ||
modulePaths: ['/shared/vendor/modules'], | ||
prettierPath: '<rootDir>/node_modules/prettier', | ||
resetMocks: false, | ||
resetModules: false, | ||
resolver: '<rootDir>/resolver.js', | ||
restoreMocks: false, | ||
rootDir: '/', | ||
roots: ['<rootDir>'], | ||
runner: 'jest-runner', | ||
runtime: '<rootDir>', | ||
sandboxInjectedGlobals: [], | ||
setupFiles: ['<rootDir>/setup.js'], | ||
setupFilesAfterEnv: ['<rootDir>/testSetupFile.js'], | ||
skipFilter: false, | ||
skipNodeResolution: false, | ||
slowTestThreshold: 5, | ||
snapshotFormat: _prettyFormat().DEFAULT_OPTIONS, | ||
snapshotResolver: '<rootDir>/snapshotResolver.js', | ||
snapshotSerializers: ['my-serializer-module'], | ||
testEnvironment: 'jest-environment-node', | ||
testEnvironmentOptions: { | ||
url: 'http://localhost', | ||
userAgent: 'Agent/007' | ||
}, | ||
testLocationInResults: false, | ||
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'], | ||
testPathIgnorePatterns: [NODE_MODULES_REGEXP], | ||
testRegex: (0, _jestValidate().multipleValidOptions)( | ||
'(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$', | ||
['/__tests__/\\.test\\.[jt]sx?$', '/__tests__/\\.spec\\.[jt]sx?$'] | ||
), | ||
testRunner: 'circus', | ||
transform: { | ||
'\\.js$': '<rootDir>/preprocessor.js' | ||
}, | ||
transformIgnorePatterns: [NODE_MODULES_REGEXP], | ||
unmockedModulePathPatterns: ['mock'], | ||
watchPathIgnorePatterns: ['<rootDir>/e2e/'], | ||
workerIdleMemoryLimit: (0, _jestValidate().multipleValidOptions)(0.2, '50%') | ||
}; | ||
exports.initialProjectOptions = initialProjectOptions; |
{ | ||
"name": "jest-config", | ||
"version": "29.2.2", | ||
"version": "29.3.0", | ||
"repository": { | ||
@@ -33,5 +33,5 @@ "type": "git", | ||
"@babel/core": "^7.11.6", | ||
"@jest/test-sequencer": "^29.2.2", | ||
"@jest/test-sequencer": "^29.3.0", | ||
"@jest/types": "^29.2.1", | ||
"babel-jest": "^29.2.2", | ||
"babel-jest": "^29.3.0", | ||
"chalk": "^4.0.0", | ||
@@ -42,8 +42,8 @@ "ci-info": "^3.2.0", | ||
"graceful-fs": "^4.2.9", | ||
"jest-circus": "^29.2.2", | ||
"jest-environment-node": "^29.2.2", | ||
"jest-circus": "^29.3.0", | ||
"jest-environment-node": "^29.3.0", | ||
"jest-get-type": "^29.2.0", | ||
"jest-regex-util": "^29.2.0", | ||
"jest-resolve": "^29.2.2", | ||
"jest-runner": "^29.2.2", | ||
"jest-resolve": "^29.3.0", | ||
"jest-runner": "^29.3.0", | ||
"jest-util": "^29.2.1", | ||
@@ -71,3 +71,3 @@ "jest-validate": "^29.2.2", | ||
}, | ||
"gitHead": "0a8edbe0ac434394a16cc173a03ff54a9cc50e41" | ||
"gitHead": "84b8de987b33e2da20dc833aeb65f23d72a673cd" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113663
3539
Updated@jest/test-sequencer@^29.3.0
Updatedbabel-jest@^29.3.0
Updatedjest-circus@^29.3.0
Updatedjest-resolve@^29.3.0
Updatedjest-runner@^29.3.0