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": {
"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",

View File

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