mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added type checks to admin-x-design-system unit tests (#20863)
no issue - Previously we weren't running the type checks in the `admin-x-design-system` in CI, because we only run `yarn test:unit` in CI. This adds the typechecks to the `yarn test:unit` command so CI will fail if the type checks fail.
This commit is contained in:
parent
e3db122bc5
commit
07932325f4
2 changed files with 4 additions and 3 deletions
|
@ -11,8 +11,8 @@
|
|||
"scripts": {
|
||||
"build": "tsc -p tsconfig.declaration.json && vite build",
|
||||
"prepare": "yarn build",
|
||||
"test": "yarn test:unit && yarn test:types",
|
||||
"test:unit": "yarn nx build && vitest run",
|
||||
"test": "yarn test:unit",
|
||||
"test:unit": "yarn test:types && yarn nx build && vitest run",
|
||||
"test:types": "tsc --noEmit",
|
||||
"lint:code": "eslint --ext .js,.ts,.cjs,.tsx src/ --cache",
|
||||
"lint": "yarn lint:code && yarn lint:test",
|
||||
|
|
|
@ -109,7 +109,8 @@
|
|||
"test:unit": {
|
||||
"dependsOn": [
|
||||
"test:unit",
|
||||
"^build"
|
||||
"^build",
|
||||
"@tryghost/admin-x-design-system:test:unit"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue