@jest/core
Advanced tools
Comparing version 29.6.4 to 29.7.0
@@ -24,13 +24,21 @@ 'use strict'; | ||
setTestResults(testResults) { | ||
this._enabledTestsMap = (testResults || []) | ||
.filter(testResult => testResult.numFailingTests) | ||
.reduce((suiteMap, testResult) => { | ||
suiteMap[testResult.testFilePath] = testResult.testResults | ||
.filter(test => test.status === 'failed') | ||
.reduce((testMap, test) => { | ||
this._enabledTestsMap = (testResults || []).reduce( | ||
(suiteMap, testResult) => { | ||
if (!testResult.numFailingTests) { | ||
return suiteMap; | ||
} | ||
suiteMap[testResult.testFilePath] = testResult.testResults.reduce( | ||
(testMap, test) => { | ||
if (test.status !== 'failed') { | ||
return testMap; | ||
} | ||
testMap[test.fullName] = true; | ||
return testMap; | ||
}, {}); | ||
}, | ||
{} | ||
); | ||
return suiteMap; | ||
}, {}); | ||
}, | ||
{} | ||
); | ||
this._enabledTestsMap = Object.freeze(this._enabledTestsMap); | ||
@@ -37,0 +45,0 @@ } |
@@ -14,2 +14,9 @@ 'use strict'; | ||
} | ||
function _jestUtil() { | ||
const data = require('jest-util'); | ||
_jestUtil = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _interopRequireDefault(obj) { | ||
@@ -25,3 +32,3 @@ return obj && obj.__esModule ? obj : {default: obj}; | ||
const activeFilters = (globalConfig, delimiter = '\n') => { | ||
const activeFilters = globalConfig => { | ||
const {testNamePattern, testPathPattern} = globalConfig; | ||
@@ -39,8 +46,6 @@ if (testNamePattern || testPathPattern) { | ||
] | ||
.filter(f => f) | ||
.filter(_jestUtil().isNonNullable) | ||
.join(', '); | ||
const messages = [ | ||
`\n${_chalk().default.bold('Active Filters: ')}${filters}` | ||
]; | ||
return messages.filter(message => !!message).join(delimiter); | ||
const messages = `\n${_chalk().default.bold('Active Filters: ')}${filters}`; | ||
return messages; | ||
} | ||
@@ -47,0 +52,0 @@ return ''; |
{ | ||
"name": "@jest/core", | ||
"description": "Delightful JavaScript Testing.", | ||
"version": "29.6.4", | ||
"version": "29.7.0", | ||
"main": "./build/index.js", | ||
@@ -15,6 +15,6 @@ "types": "./build/index.d.ts", | ||
"dependencies": { | ||
"@jest/console": "^29.6.4", | ||
"@jest/reporters": "^29.6.4", | ||
"@jest/test-result": "^29.6.4", | ||
"@jest/transform": "^29.6.4", | ||
"@jest/console": "^29.7.0", | ||
"@jest/reporters": "^29.7.0", | ||
"@jest/test-result": "^29.7.0", | ||
"@jest/transform": "^29.7.0", | ||
"@jest/types": "^29.6.3", | ||
@@ -27,17 +27,17 @@ "@types/node": "*", | ||
"graceful-fs": "^4.2.9", | ||
"jest-changed-files": "^29.6.3", | ||
"jest-config": "^29.6.4", | ||
"jest-haste-map": "^29.6.4", | ||
"jest-message-util": "^29.6.3", | ||
"jest-changed-files": "^29.7.0", | ||
"jest-config": "^29.7.0", | ||
"jest-haste-map": "^29.7.0", | ||
"jest-message-util": "^29.7.0", | ||
"jest-regex-util": "^29.6.3", | ||
"jest-resolve": "^29.6.4", | ||
"jest-resolve-dependencies": "^29.6.4", | ||
"jest-runner": "^29.6.4", | ||
"jest-runtime": "^29.6.4", | ||
"jest-snapshot": "^29.6.4", | ||
"jest-util": "^29.6.3", | ||
"jest-validate": "^29.6.3", | ||
"jest-watcher": "^29.6.4", | ||
"jest-resolve": "^29.7.0", | ||
"jest-resolve-dependencies": "^29.7.0", | ||
"jest-runner": "^29.7.0", | ||
"jest-runtime": "^29.7.0", | ||
"jest-snapshot": "^29.7.0", | ||
"jest-util": "^29.7.0", | ||
"jest-validate": "^29.7.0", | ||
"jest-watcher": "^29.7.0", | ||
"micromatch": "^4.0.4", | ||
"pretty-format": "^29.6.3", | ||
"pretty-format": "^29.7.0", | ||
"slash": "^3.0.0", | ||
@@ -47,4 +47,4 @@ "strip-ansi": "^6.0.0" | ||
"devDependencies": { | ||
"@jest/test-sequencer": "^29.6.4", | ||
"@jest/test-utils": "^29.6.4", | ||
"@jest/test-sequencer": "^29.7.0", | ||
"@jest/test-utils": "^29.7.0", | ||
"@types/exit": "^0.1.30", | ||
@@ -104,3 +104,3 @@ "@types/graceful-fs": "^4.1.3", | ||
}, | ||
"gitHead": "55cd6a0aaf6f9178199dfa7af7a00fcaa7c421fd" | ||
"gitHead": "4e56991693da7cd4c3730dc3579a1dd1403ee630" | ||
} |
145449
4871
Updated@jest/console@^29.7.0
Updated@jest/reporters@^29.7.0
Updated@jest/test-result@^29.7.0
Updated@jest/transform@^29.7.0
Updatedjest-changed-files@^29.7.0
Updatedjest-config@^29.7.0
Updatedjest-haste-map@^29.7.0
Updatedjest-message-util@^29.7.0
Updatedjest-resolve@^29.7.0
Updatedjest-runner@^29.7.0
Updatedjest-runtime@^29.7.0
Updatedjest-snapshot@^29.7.0
Updatedjest-util@^29.7.0
Updatedjest-validate@^29.7.0
Updatedjest-watcher@^29.7.0
Updatedpretty-format@^29.7.0