0
Fork 0
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:
Chris Raible 2024-09-05 16:15:15 -07:00 committed by GitHub
parent e3db122bc5
commit 07932325f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -11,8 +11,8 @@
"scripts": { "scripts": {
"build": "tsc -p tsconfig.declaration.json && vite build", "build": "tsc -p tsconfig.declaration.json && vite build",
"prepare": "yarn build", "prepare": "yarn build",
"test": "yarn test:unit && yarn test:types", "test": "yarn test:unit",
"test:unit": "yarn nx build && vitest run", "test:unit": "yarn test:types && yarn nx build && vitest run",
"test:types": "tsc --noEmit", "test:types": "tsc --noEmit",
"lint:code": "eslint --ext .js,.ts,.cjs,.tsx src/ --cache", "lint:code": "eslint --ext .js,.ts,.cjs,.tsx src/ --cache",
"lint": "yarn lint:code && yarn lint:test", "lint": "yarn lint:code && yarn lint:test",

View file

@ -109,7 +109,8 @@
"test:unit": { "test:unit": {
"dependsOn": [ "dependsOn": [
"test:unit", "test:unit",
"^build" "^build",
"@tryghost/admin-x-design-system:test:unit"
] ]
} }
} }