Socket
Socket
Sign inDemoInstall

jest-cli

Package Overview
Dependencies
309
Maintainers
6
Versions
388
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 29.5.0 to 29.6.0

31

build/init/generateConfigFile.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc