mirror of https://github.com/facebook/jest.git
213 lines
7.9 KiB
JSON
213 lines
7.9 KiB
JSON
{
|
|
"name": "@jest/monorepo",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"devDependencies": {
|
|
"@babel/core": "^7.27.4",
|
|
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
"@babel/preset-env": "^7.27.2",
|
|
"@babel/preset-react": "^7.27.1",
|
|
"@babel/preset-typescript": "^7.27.1",
|
|
"@babel/register": "^7.27.1",
|
|
"@crowdin/cli": "^4.7.0",
|
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
"@eslint/js": "^9.28.0",
|
|
"@eslint/markdown": "^6.4.0",
|
|
"@jest/globals": "workspace:*",
|
|
"@jest/test-utils": "workspace:*",
|
|
"@lerna-lite/cli": "^4.3.0",
|
|
"@lerna-lite/exec": "^4.3.0",
|
|
"@lerna-lite/publish": "^4.3.0",
|
|
"@microsoft/api-extractor": "^7.35.0",
|
|
"@tsconfig/node18": "^18.2.4",
|
|
"@types/babel__core": "^7.20.5",
|
|
"@types/babel__generator": "^7.27.0",
|
|
"@types/babel__template": "^7.4.4",
|
|
"@types/node": "^18.14",
|
|
"@types/which": "^3.0.4",
|
|
"@yarnpkg/types": "^4.0.1",
|
|
"ansi-regex": "^5.0.1",
|
|
"ansi-styles": "^5.2.0",
|
|
"babel-jest": "workspace:*",
|
|
"babel-loader": "^9.2.1",
|
|
"camelcase": "^6.3.0",
|
|
"chalk": "^4.1.2",
|
|
"dedent": "^1.6.0",
|
|
"eslint": "^9.28.0",
|
|
"eslint-config-prettier": "^10.1.5",
|
|
"eslint-import-resolver-typescript": "^4.4.2",
|
|
"eslint-plugin-import-x": "^4.15.0",
|
|
"eslint-plugin-jest": "^28.12.0",
|
|
"eslint-plugin-jsdoc": "^50.7.1",
|
|
"eslint-plugin-prettier": "^5.4.1",
|
|
"eslint-plugin-promise": "^7.2.1",
|
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
"execa": "^5.1.1",
|
|
"find-process": "^1.4.10",
|
|
"glob": "^10.3.10",
|
|
"globals": "^16.2.0",
|
|
"graceful-fs": "^4.2.11",
|
|
"isbinaryfile": "^5.0.4",
|
|
"istanbul-lib-coverage": "^3.0.0",
|
|
"istanbul-lib-report": "^3.0.0",
|
|
"istanbul-reports": "^3.1.3",
|
|
"jest": "workspace:*",
|
|
"jest-changed-files": "workspace:*",
|
|
"jest-junit": "^16.0.0",
|
|
"jest-mock": "workspace:*",
|
|
"jest-serializer-ansi-escapes": "^3.0.0",
|
|
"jest-silent-reporter": "^0.6.0",
|
|
"jest-snapshot": "workspace:*",
|
|
"jest-util": "workspace:*",
|
|
"jest-watch-typeahead": "^2.2.2",
|
|
"jquery": "^3.2.1",
|
|
"js-yaml": "^4.1.0",
|
|
"micromatch": "^4.0.8",
|
|
"mock-fs": "^5.5.0",
|
|
"netlify-plugin-cache": "^1.0.3",
|
|
"node-notifier": "^10.0.1",
|
|
"p-limit": "^3.1.0",
|
|
"pkg-dir": "^5.0.0",
|
|
"prettier": "^3.0.3",
|
|
"promise": "^8.3.0",
|
|
"read-pkg": "^5.2.0",
|
|
"resolve": "^1.20.0",
|
|
"rimraf": "^5.0.10",
|
|
"semver": "^7.7.2",
|
|
"slash": "^3.0.0",
|
|
"strip-json-comments": "^3.1.1",
|
|
"tempy": "^1.0.1",
|
|
"ts-node": "^10.5.0",
|
|
"tstyche": "^4.0.0",
|
|
"typescript": "^5.0.4",
|
|
"typescript-eslint": "^8.33.1",
|
|
"webpack": "^5.68.0",
|
|
"webpack-node-externals": "^3.0.0",
|
|
"which": "^4.0.0"
|
|
},
|
|
"scripts": {
|
|
"build-clean": "rimraf --glob './packages/*/build' './packages/*/dist' './packages/*/tsconfig.tsbuildinfo' './packages/*/api-extractor.json' './api-extractor.json'",
|
|
"build": "yarn build:js && yarn build:ts && yarn bundle:ts",
|
|
"build:js": "node ./scripts/build.mjs",
|
|
"build:ts": "node ./scripts/buildTs.mjs",
|
|
"bundle:ts": "node ./scripts/bundleTs.mjs",
|
|
"check-changelog": "node ./scripts/checkChangelog.mjs",
|
|
"check-copyright-headers": "node ./scripts/checkCopyrightHeaders.mjs",
|
|
"clean-all": "yarn clean-e2e && yarn build-clean && rimraf --glob './packages/*/node_modules' && rimraf './node_modules'",
|
|
"clean-e2e": "node ./scripts/cleanE2e.mjs",
|
|
"crowdin:upload": "echo 'Uploading sources to Crowdin' && crowdin upload sources --config ./crowdin.yaml",
|
|
"crowdin:download": "echo 'Downloading translations from Crowdin' && crowdin download --config ./crowdin.yaml --language ja --language es-ES --language fr --language pt-BR --language ro --language ru --language uk --language zh-CN",
|
|
"jest": "node ./packages/jest-cli/bin/jest.js",
|
|
"jest-jasmine": "JEST_JASMINE=1 yarn jest",
|
|
"jest-jasmine-ci": "yarn jest-jasmine --color --config jest.config.ci.mjs",
|
|
"jest-coverage": "yarn jest --coverage",
|
|
"lint": "eslint . --cache --ext js,jsx,cjs,mjs,ts,tsx,md",
|
|
"lint:prettier-script": "prettier . \"!**/*.{js,jsx,cjs,mjs,ts,tsx}\" --cache",
|
|
"lint:prettier": "yarn lint:prettier-script --write",
|
|
"lint:prettier:ci": "yarn lint:prettier-script --check",
|
|
"lint-ts-files": "node scripts/lintTs.mjs",
|
|
"remove-examples": "node ./scripts/remove-examples.mjs",
|
|
"test-ci-partial": "yarn test-ci-partial:parallel -i",
|
|
"test-ci-partial:parallel": "yarn jest --color --config jest.config.ci.mjs",
|
|
"test-leak": "yarn jest -i --detectLeaks --color jest-mock jest-diff pretty-format",
|
|
"test-ts": "yarn jest --config jest.config.ts.mjs",
|
|
"test-types": "yarn tstyche",
|
|
"test-with-type-info": "yarn jest e2e/__tests__/jest.config.ts.test.ts",
|
|
"test": "yarn lint && yarn jest",
|
|
"typecheck": "yarn typecheck:examples && yarn typecheck:tests",
|
|
"typecheck:examples": "tsc -p examples/expect-extend && tsc -p examples/typescript",
|
|
"typecheck:tests": "tsc -b packages/{babel-jest,babel-plugin-jest-hoist,create-jest,diff-sequences,expect,expect-utils,jest-circus,jest-cli,jest-config,jest-console,jest-snapshot,jest-util,jest-validate,jest-watcher,jest-worker,pretty-format}/**/__tests__",
|
|
"verify-old-ts": "node ./scripts/verifyOldTs.mjs",
|
|
"verify-pnp": "node ./scripts/verifyPnP.mjs",
|
|
"watch": "node ./scripts/watch.mjs",
|
|
"watch:ts": "yarn build:ts --watch"
|
|
},
|
|
"workspaces": [
|
|
"packages/*",
|
|
"website",
|
|
"examples/*"
|
|
],
|
|
"prettier": {
|
|
"bracketSpacing": false,
|
|
"proseWrap": "never",
|
|
"singleQuote": true,
|
|
"trailingComma": "all",
|
|
"arrowParens": "avoid",
|
|
"overrides": [
|
|
{
|
|
"files": "website/**/*.js",
|
|
"options": {
|
|
"trailingComma": "es5"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"lerna.json",
|
|
"website/sidebars.json",
|
|
"website/versioned_sidebars/*.json"
|
|
],
|
|
"options": {
|
|
"parser": "json-stringify"
|
|
}
|
|
},
|
|
{
|
|
"files": ".yarnrc.yml",
|
|
"options": {
|
|
"singleQuote": false
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"docs/*.md",
|
|
"website/versioned_docs/*/*.md"
|
|
],
|
|
"options": {
|
|
"parser": "mdx"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"e2e/babel-plugin-jest-hoist/__tests__/integration.test.js",
|
|
"e2e/coverage-report/notRequiredInTestSuite.js",
|
|
"e2e/expect-async-matcher/matchers.js",
|
|
"e2e/failures/__tests__/*.js",
|
|
"e2e/failures/macros.js",
|
|
"e2e/global-setup/*.js",
|
|
"e2e/global-teardown/*.js",
|
|
"e2e/multi-project-babel/**/*.js",
|
|
"e2e/transform/babel-jest-async/only-file-to-transform.js",
|
|
"e2e/transform/babel-jest-manual/**/*.js",
|
|
"e2e/transform/babel-jest/**/*.js",
|
|
"e2e/transform/no-babel-jest/__tests__/failsWithSyntaxError.test.js",
|
|
"e2e/transform/transformer-config/**/*.js"
|
|
],
|
|
"options": {
|
|
"parser": "babel-flow"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"collective": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/jest",
|
|
"logo": "https://opencollective.com/jest/logo.txt"
|
|
},
|
|
"engines": {
|
|
"node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"
|
|
},
|
|
"resolutions": {
|
|
"@types/node": "~18.14",
|
|
"@types/react": "^18.2.21",
|
|
"ansi-escapes/type-fest": "^2.0.0",
|
|
"babel-jest": "workspace:*",
|
|
"jest": "workspace:*",
|
|
"jest-environment-node": "workspace:*",
|
|
"lru-cache@^10.0.1": "patch:lru-cache@npm:10.4.3#./.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch",
|
|
"lru-cache@^10.2.0": "patch:lru-cache@npm:10.4.3#./.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch",
|
|
"lru-cache@^10.2.2": "patch:lru-cache@npm:10.4.3#./.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch",
|
|
"ts-node@^10.5.0": "patch:ts-node@npm:^10.5.0#./.yarn/patches/ts-node-npm-10.9.1-6c268be7f4.patch",
|
|
"typescript": "~5.5.4"
|
|
},
|
|
"packageManager": "yarn@4.9.2"
|
|
}
|