Permalink
This PR upgrades `jest-worker` and `jest-cli` to the latest pre-release version, also removed `jest-circus` which is included in Jest by default. `jest-worker@next` includes a fix for memory leak that we need (facebook/jest#11187). Fixes #22925. This will also improve the OOM issue for `next dev` #15855.
| { | |
| "name": "nextjs-project", | |
| "private": true, | |
| "workspaces": [ | |
| "packages/*" | |
| ], | |
| "scripts": { | |
| "lerna": "lerna", | |
| "dev": "lerna run dev --stream --parallel", | |
| "dev2": "while true; do yarn --check-files && yarn dev; done", | |
| "testonly": "jest --runInBand", | |
| "testheadless": "cross-env HEADLESS=true yarn testonly", | |
| "testsafari": "cross-env BROWSER_NAME=safari yarn testonly", | |
| "testfirefox": "cross-env BROWSER_NAME=firefox yarn testonly", | |
| "testie": "cross-env BROWSER_NAME=\"internet explorer\" yarn testonly", | |
| "testall": "yarn run testonly -- --ci --forceExit && lerna run --scope @next/codemod test", | |
| "genstats": "cross-env LOCAL_STATS=true node .github/actions/next-stats-action/src/index.js", | |
| "pretest": "yarn run lint", | |
| "git-reset": "git reset --hard HEAD", | |
| "git-clean": "git clean -d -x -e node_modules -e packages -f", | |
| "test-take2": "yarn git-reset && yarn git-clean && yarn testall", | |
| "test": "yarn run testall || yarn run test-take2", | |
| "lint-typescript": "lerna run typescript", | |
| "lint-eslint": "eslint . --ext js,jsx,ts,tsx --max-warnings=0", | |
| "lint-no-typescript": "run-p prettier-check lint-eslint", | |
| "lint": "run-p lint-typescript prettier-check lint-eslint", | |
| "lint-fix": "yarn prettier-fix && eslint . --ext js,jsx,ts,tsx --fix --max-warnings=0", | |
| "prettier-check": "prettier --check .", | |
| "prettier-fix": "prettier --write .", | |
| "types": "lerna run types --stream", | |
| "typescript": "lerna run typescript", | |
| "prepublish": "lerna run prepublish", | |
| "publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre --skip-questions", | |
| "publish-stable": "lerna version --force-publish", | |
| "lint-staged": "lint-staged", | |
| "next": "node --trace-deprecation packages/next/dist/bin/next", | |
| "debug": "node --inspect packages/next/dist/bin/next" | |
| }, | |
| "pre-commit": "lint-staged", | |
| "devDependencies": { | |
| "@babel/plugin-proposal-object-rest-spread": "7.12.1", | |
| "@babel/preset-flow": "7.12.1", | |
| "@babel/preset-react": "7.12.10", | |
| "@fullhuman/postcss-purgecss": "1.3.0", | |
| "@mdx-js/loader": "0.18.0", | |
| "@testing-library/react": "11.2.5", | |
| "@types/cheerio": "0.22.16", | |
| "@types/fs-extra": "8.1.0", | |
| "@types/http-proxy": "1.17.3", | |
| "@types/jest": "24.0.13", | |
| "@types/string-hash": "1.1.1", | |
| "@typescript-eslint/eslint-plugin": "2.17.0", | |
| "@typescript-eslint/parser": "2.17.0", | |
| "@zeit/next-css": "1.0.2-canary.2", | |
| "@zeit/next-sass": "1.0.2-canary.2", | |
| "@zeit/next-typescript": "1.1.2-canary.0", | |
| "abort-controller": "3.0.0", | |
| "amphtml-validator": "1.0.33", | |
| "async-sema": "3.0.1", | |
| "babel-core": "7.0.0-bridge.0", | |
| "babel-eslint": "10.0.3", | |
| "babel-jest": "27.0.0-next.5", | |
| "browserslist": "^4.14.7", | |
| "browserstack-local": "1.4.0", | |
| "cheerio": "0.22.0", | |
| "clone": "2.1.2", | |
| "cookie": "0.4.1", | |
| "cors": "2.8.5", | |
| "coveralls": "3.0.3", | |
| "critters": "0.0.6", | |
| "cross-env": "6.0.3", | |
| "cross-spawn": "6.0.5", | |
| "escape-string-regexp": "2.0.0", | |
| "eslint": "6.8.0", | |
| "eslint-plugin-import": "2.20.2", | |
| "eslint-plugin-jest": "23.13.1", | |
| "eslint-plugin-react": "7.19.0", | |
| "eslint-plugin-react-hooks": "2.3.0", | |
| "execa": "2.0.3", | |
| "express": "4.17.0", | |
| "faunadb": "2.6.1", | |
| "firebase": "7.14.5", | |
| "fs-extra": "9.0.0", | |
| "get-port": "5.1.1", | |
| "glob": "7.1.6", | |
| "gzip-size": "5.1.1", | |
| "image-size": "0.9.3", | |
| "is-animated": "2.0.0", | |
| "isomorphic-unfetch": "3.0.0", | |
| "jest-cli": "27.0.0-next.5", | |
| "ky": "0.19.1", | |
| "ky-universal": "0.6.0", | |
| "lerna": "4.0.0", | |
| "lint-staged": "10.1.7", | |
| "lost": "8.3.1", | |
| "minimatch": "3.0.4", | |
| "moment": "^2.24.0", | |
| "node-fetch": "2.6.1", | |
| "node-notifier": "5.4.0", | |
| "node-sass": "5.0.0", | |
| "npm-run-all": "4.1.5", | |
| "nprogress": "0.2.0", | |
| "pixrem": "5.0.0", | |
| "pnpm": "5.14.3", | |
| "postcss-nested": "4.2.1", | |
| "postcss-pseudoelements": "5.0.0", | |
| "postcss-short-size": "4.0.0", | |
| "postcss-trolling": "0.1.7", | |
| "pre-commit": "1.2.2", | |
| "prettier": "2.0.5", | |
| "pretty-bytes": "5.3.0", | |
| "pretty-ms": "7.0.0", | |
| "react": "17.0.1", | |
| "react-dom": "17.0.1", | |
| "react-ssr-prepass": "1.0.8", | |
| "release": "6.3.0", | |
| "request-promise-core": "1.1.2", | |
| "rimraf": "2.6.3", | |
| "seedrandom": "3.0.5", | |
| "selenium-standalone": "6.18.0", | |
| "selenium-webdriver": "4.0.0-alpha.7", | |
| "shell-quote": "1.7.2", | |
| "styled-components": "5.1.0", | |
| "styled-jsx-plugin-postcss": "3.0.2", | |
| "tailwindcss": "1.1.3", | |
| "taskr": "1.1.0", | |
| "tree-kill": "1.2.2", | |
| "typescript": "3.8.3", | |
| "wait-port": "0.2.2", | |
| "web-streams-polyfill": "2.1.1", | |
| "webpack-bundle-analyzer": "4.3.0", | |
| "worker-loader": "3.0.7" | |
| }, | |
| "resolutions": { | |
| "browserslist": "4.16.1", | |
| "caniuse-lite": "1.0.30001179" | |
| }, | |
| "engines": { | |
| "node": ">= 10.13.0" | |
| } | |
| } |