chore(repo): test targets should depend on the globaljest config file

This commit is contained in:
Victor Savkin 2022-06-29 11:06:43 -04:00
parent 2455e9786d
commit 071ebf70cf
No known key found for this signature in database
GPG Key ID: 39178FEB7698B817

32
nx.json
View File

@ -29,20 +29,38 @@
"appsDir": "" "appsDir": ""
}, },
"namedInputs": { "namedInputs": {
"default": ["{projectRoot}/**/*"], "default": [
"prod": ["!{projectRoot}/**/*.spec.ts{,.snap}"] "{projectRoot}/**/*"
],
"prod": [
"!{projectRoot}/**/*.spec.ts{,.snap}"
]
}, },
"targetDefaults": { "targetDefaults": {
"build": { "build": {
"dependsOn": ["build-base"], "dependsOn": [
"inputs": ["prod", "^prod"] "build-base"
],
"inputs": [
"prod",
"^prod"
]
}, },
"build-base": { "build-base": {
"dependsOn": ["^build-base"], "dependsOn": [
"inputs": ["prod", "^prod"] "^build-base"
],
"inputs": [
"prod",
"^prod"
]
}, },
"test": { "test": {
"inputs": ["default", "^prod"] "inputs": [
"default",
"^prod",
"{workspaceRoot}/jest.config.ts"
]
}, },
"lint": { "lint": {
"inputs": [ "inputs": [