/
githubmirror
/
lerna
Обзор
Документация
Войти
/
githubmirror
/
lerna
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
nx.json
143 строки
4 KB
James Henry
chore(repo): migrate from jest to vitest (#4389)
13 июл 2026, 20:06
Не верифицирован
13 июл 2026, 20:06
1f7e109
Код
Авторство
О чём код?
{ "$schema": "./node_modules/nx/schemas/nx-schema.json", "namedInputs": { "default": ["{projectRoot}/**/*", "sharedGlobals"], "sharedGlobals": [ { "runtime": "node -e 'console.log(`${process.platform}-${process.arch}`)'" }, { "runtime": "node --version" }, { "runtime": "npm --version" }, "{workspaceRoot}/.github/workflows/ci.yml", "{workspaceRoot}/.github/workflows/other-node-versions.yml" ], "production": [ "default", "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", "!{projectRoot}/tsconfig.spec.json", "!{projectRoot}/jest.config.[jt]s", "!{projectRoot}/eslint.config.mjs" ] }, "targetDefaults": { "test": { "inputs": ["default", "^production", "{workspaceRoot}/vitest.shared.ts"], "dependsOn": ["build"], "cache": true }, "lint": { "inputs": ["default", "{workspaceRoot}/eslint.config.mjs"], "cache": true }, "build": { "inputs": ["production", "^production"], "dependsOn": ["^build"], "cache": true }, "compile": { "inputs": ["production", "^production"], "cache": true }, "e2e": { "executor": "nx:run-commands", "options": { "commands": [ { "command": "npm run e2e-start-local-registry" }, { "command": "npm run e2e-build-package-publish" }, { "command": "E2E_ROOT=$(npx ts-node --project tools/scripts/tsconfig.e2e.json tools/scripts/set-e2e-root.ts) nx run-e2e-tests {projectName}" } ], "parallel": false }, "cache": true }, "prepare-for-e2e": { "executor": "nx:run-commands", "inputs": ["default", "^production"], "options": { "commands": [ { "command": "npm run e2e-start-local-registry" }, { "command": "npm run e2e-build-package-publish" } ], "parallel": false }, "cache": false }, "run-e2e-tests-ci--**/*": { "dependsOn": ["prepare-for-e2e"], "inputs": ["default", "^production", "{workspaceRoot}/vitest.shared.ts"], "cache": true }, "run-e2e-tests": { "inputs": ["default", "^production", "{workspaceRoot}/vitest.shared.ts"], "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "cache": true }, "run-e2e-tests-process": { "inputs": ["default", "^production", "{workspaceRoot}/vitest.shared.ts"], "executor": "nx:run-commands", "options": { "commands": [ { "command": "E2E_ROOT=$(npx ts-node --project tools/scripts/tsconfig.e2e.json tools/scripts/set-e2e-root.ts) nx run-e2e-tests {projectName}", "description": "This additional wrapper target exists so that we can ensure that the e2e tests run in a dedicated process with enough memory" } ], "parallel": false }, "cache": true }, "integration": { "inputs": ["default"], "dependsOn": ["^build"], "cache": true } }, "plugins": [ { "plugin": "@nx/vitest", "include": ["libs/**", "packages/**"], "options": { "testTargetName": "test" } }, { "plugin": "@nx/vitest", "include": ["integration/**"], "options": { "testTargetName": "integration" } }, { "plugin": "@nx/vitest", "include": ["e2e/**"], "exclude": ["e2e/run/**"], "options": { "ciTargetName": "run-e2e-tests-ci", "testTargetName": "run-e2e-tests" } }, { "plugin": "@nx/vitest", "include": ["e2e/run/**"], "options": { "testTargetName": "run-e2e-tests" } } ], "nxCloudAccessToken": "MGQ4ZjkyMWYtYTVhNi00ZWQ4LWE0OTctNTkxM2U0ZDUzYWQ1fHJlYWQ=", "analytics": true }