mirror of
https://github.com/LukeHagar/crossws.git
synced 2025-12-06 04:19:26 +00:00
chore: setup coverage report
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -28,4 +28,5 @@ jobs:
|
|||||||
- run: pnpm lint
|
- run: pnpm lint
|
||||||
- run: pnpm test:types
|
- run: pnpm test:types
|
||||||
- run: pnpm build
|
- run: pnpm build
|
||||||
- run: pnpm vitest
|
- run: pnpm vitest run --coverage
|
||||||
|
- uses: codecov/codecov-action@v4
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
"play:sse": "bun test/fixture/sse.ts",
|
"play:sse": "bun test/fixture/sse.ts",
|
||||||
"play:uws": "jiti test/fixture/uws.ts",
|
"play:uws": "jiti test/fixture/uws.ts",
|
||||||
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
|
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
|
||||||
"test": "pnpm lint && pnpm test:types && vitest run",
|
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
|
||||||
"test:types": "tsc --noEmit --skipLibCheck"
|
"test:types": "tsc --noEmit --skipLibCheck"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|||||||
16
vitest.config.mjs
Normal file
16
vitest.config.mjs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import { defineConfig } from "vitest/config";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
test: {
|
||||||
|
typecheck: { enabled: true },
|
||||||
|
coverage: {
|
||||||
|
include: ["src/**/*.ts"],
|
||||||
|
exclude: [
|
||||||
|
"src/websocket/*",
|
||||||
|
"src/adapters/*",
|
||||||
|
"!src/adapters/node.ts",
|
||||||
|
"!src/adapters/uws.ts",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user