jest-cli
Advanced tools
Comparing version 29.5.0 to 29.6.0
@@ -31,3 +31,3 @@ 'use strict'; | ||
.map(line => ` ${linePrefix}${line}`) | ||
.join('\n')},\n`; | ||
.join('\n')},`; | ||
}; | ||
@@ -69,19 +69,24 @@ const generateConfigFile = (results, generateEsm = false) => { | ||
} | ||
const configHeaderMessage = `/* | ||
* For a detailed explanation regarding each configuration property${ | ||
useTypescript ? ' and type check' : '' | ||
}, visit: | ||
const configHeaderMessage = `/** | ||
* For a detailed explanation regarding each configuration property, visit: | ||
* https://jestjs.io/docs/configuration | ||
*/ | ||
`; | ||
const jsDeclaration = `/** @type {import('jest').Config} */ | ||
const config = {`; | ||
const tsDeclaration = `import type {Config} from 'jest'; | ||
`; | ||
return `${ | ||
configHeaderMessage + | ||
(useTypescript || generateEsm | ||
? 'export default {\n' | ||
: 'module.exports = {\n') + | ||
properties.join('\n') | ||
}};\n`; | ||
const config: Config = {`; | ||
const cjsExport = 'module.exports = config;'; | ||
const esmExport = 'export default config;'; | ||
return [ | ||
configHeaderMessage, | ||
useTypescript ? tsDeclaration : jsDeclaration, | ||
properties.join('\n\n'), | ||
'};\n', | ||
useTypescript || generateEsm ? esmExport : cjsExport, | ||
'' | ||
].join('\n'); | ||
}; | ||
var _default = generateConfigFile; | ||
exports.default = _default; |
{ | ||
"name": "jest-cli", | ||
"description": "Delightful JavaScript Testing.", | ||
"version": "29.5.0", | ||
"version": "29.6.0", | ||
"main": "./build/index.js", | ||
@@ -16,5 +16,5 @@ "types": "./build/index.d.ts", | ||
"dependencies": { | ||
"@jest/core": "^29.5.0", | ||
"@jest/test-result": "^29.5.0", | ||
"@jest/types": "^29.5.0", | ||
"@jest/core": "^29.6.0", | ||
"@jest/test-result": "^29.6.0", | ||
"@jest/types": "^29.6.0", | ||
"chalk": "^4.0.0", | ||
@@ -24,5 +24,5 @@ "exit": "^0.1.2", | ||
"import-local": "^3.0.2", | ||
"jest-config": "^29.5.0", | ||
"jest-util": "^29.5.0", | ||
"jest-validate": "^29.5.0", | ||
"jest-config": "^29.6.0", | ||
"jest-util": "^29.6.0", | ||
"jest-validate": "^29.6.0", | ||
"prompts": "^2.0.1", | ||
@@ -32,2 +32,3 @@ "yargs": "^17.3.1" | ||
"devDependencies": { | ||
"@tsd/typescript": "^5.0.4", | ||
"@types/exit": "^0.1.30", | ||
@@ -37,3 +38,3 @@ "@types/graceful-fs": "^4.1.3", | ||
"@types/yargs": "^17.0.8", | ||
"tsd-lite": "^0.6.0" | ||
"tsd-lite": "^0.7.0" | ||
}, | ||
@@ -93,3 +94,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c" | ||
"gitHead": "c1e5b8a38ef54bb138409f89831942ebf6a7a67e" | ||
} |
45788
1426
6
Updated@jest/core@^29.6.0
Updated@jest/test-result@^29.6.0
Updated@jest/types@^29.6.0
Updatedjest-config@^29.6.0
Updatedjest-util@^29.6.0
Updatedjest-validate@^29.6.0