Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
- name: Run tests
run: yarn test

- name: Run coverage
run: yarn test:coverage

- name: Run typecheck tests
run: yarn vitest run -c packages/v1-contexts/vitest.config.ts --typecheck.only --typecheck.checker tsc --typecheck.tsconfig packages/v1-contexts/tsconfig.json

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,9 @@ jobs:
- name: Run tests
run: yarn test

- name: Run coverage
if: ${{ matrix.node-version == '24.x' }}
run: yarn test:coverage

- name: Run typecheck tests
run: yarn vitest run -c packages/v1-contexts/vitest.config.ts --typecheck.only --typecheck.checker tsc --typecheck.tsconfig packages/v1-contexts/tsconfig.json
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
dist
generated
node_modules
coverage

.npmrc
.pnp.cjs
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ else
$(YARN) test
endif

.PHONY: tests-coverage
tests-coverage: ## Runs autotests with coverage report
$(TARGET_HEADER)
ifdef cli
$(YARN) vitest --run --coverage $(cli) --passWithNoTests
else
$(YARN) test:coverage
endif

.PHONY: tests-typecheck-contexts
tests-typecheck-contexts: ## Runs typecheck tests (test-d.ts) for v1-contexts
$(TARGET_HEADER)
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"build:code": "vite build",
"build:meta": "npx tsx scripts/build.meta.ts",
"eslint": "eslint .",
"test": "vitest --run"
"test": "vitest --run",
"test:coverage": "vitest --run --coverage"
},
"peerDependencies": {
"pinia": "^2.2",
Expand All @@ -54,6 +55,7 @@
"@types/semver": "^7.7.1",
"@types/yargs": "^17.0.35",
"@vitejs/plugin-vue": "^6.0.2",
"@vitest/coverage-istanbul": "4.0.15",
"@vue/language-server": "^3.1.8",
"@vue/test-utils": "^2.4.6",
"chalk": "^5.3.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/v1-components/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export default mergeConfig(
environment: 'jsdom',
coverage: {
provider: 'istanbul',
include: ['src/**'],
all: true,
include: ['src/**/*.{ts,tsx,vue}'],
exclude: ['src/**/*.d.ts'],
},
},
})
Expand Down
Loading