mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added target dependencies to test scripts in ghost/core (#21332)
no issue - The `test:*` commands in `ghost/core` are all implicitly dependent on the TS packages in the whole monorepo being built, but we hadn't explicitly declared this dependency to NX. - Now if you run `yarn nx run ghost:test:e2e` (or any other `test:*` commands in ghost), NX will know that it needs to rebuild the TS packages, unless they are cached and haven't changed. - With this, you should be able to directly clone the repo and run `yarn nx run ghost:test:e2e` to run e2e tests, without running `yarn dev` or `yarn nx run-many -t build:ts` first. - This is especially useful for getting tests to run properly in docker
This commit is contained in:
parent
14d762ddc9
commit
0e10f500aa
1 changed files with 65 additions and 0 deletions
|
@ -285,6 +285,71 @@
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"^build:ts"
|
"^build:ts"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:single": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:all": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:unit": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:integration": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:regression": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:browser": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:browser:admin": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:browser:portal": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:e2e": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:ci:e2e": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:ci:regression": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"test:ci:integration": {
|
||||||
|
"dependsOn": [
|
||||||
|
"^build:ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue