-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add
vitest
& basic tests for blog posts (#147)
* tests: add `vitest` & basic tests for blog posts * chore: fix build errors * chore: format * build: run test first * chore: remove rimraf * chore: remove unused file * build(npm): add `^` to `vitest/coverage-v8`
- Loading branch information
Showing
7 changed files
with
607 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# build output | ||
dist/ | ||
coverage/ | ||
|
||
# generated types | ||
.astro/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,18 @@ | |
"type": "module", | ||
"scripts": { | ||
"astro": "astro", | ||
"build": "pnpm run maintainers && astro check && astro build", | ||
"build": "pnpm run maintainers && pnpm run test:run && astro check && astro build", | ||
"check": "astro check", | ||
"dev": "astro dev", | ||
"fmt": "prettier --plugin=prettier-plugin-astro . --write", | ||
"icons": "pnpm tsx src/data/scripts/convertIconsToJson.ts", | ||
"maintainers": "pnpm tsx src/data/scripts/fetchMaintainerAvatars.ts", | ||
"prepare": "husky", | ||
"preview": "astro preview", | ||
"start": "astro dev" | ||
"start": "astro dev", | ||
"test": "vitest", | ||
"test:run": "vitest run", | ||
"test:cov": "vitest run --coverage" | ||
}, | ||
"lint-staged": { | ||
"src/**/*": "pnpm run fmt" | ||
|
@@ -33,6 +36,7 @@ | |
"@iconify/types": "^2.0.0", | ||
"@rollup/plugin-yaml": "^4.1.2", | ||
"@types/node": "^22.10.1", | ||
"@vitest/coverage-v8": "^2.1.8", | ||
"astro": "^5.0.3", | ||
"astro-expressive-code": "^0.38.3", | ||
"astro-icon": "1.1.2", | ||
|
@@ -49,6 +53,7 @@ | |
"svelte": "^5.9.0", | ||
"tsx": "^4.19.2", | ||
"typescript": "^5.7.2", | ||
"vitest": "^2.1.8", | ||
"yaml": "^2.6.1" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
Oops, something went wrong.