Skip to content

Commit 70b23f0

Browse files
committed
chore: add coverage and fix prettierignore
1 parent 67aa6ae commit 70b23f0

File tree

5 files changed

+125
-5
lines changed

5 files changed

+125
-5
lines changed

.prettierignore

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
# Ignore files for PNPM, NPM and YARN
2-
pnpm-lock.yaml
3-
package-lock.json
4-
yarn.lock
5-
bun.lock
1+
.idea/
2+
.vscode/
3+
4+
.svelte-kit/
5+
dist/
6+
node_modules/
67

8+
pnpm-lock.yaml
79
pnpm-workspace.yaml
10+
811
CHANGELOG.md
12+
13+
coverage/
14+
test-results/
15+
16+
project.inlang/cache/
17+
project.inlang/.gitignore
18+
project.inlang/.meta.json
19+
project.inlang/README.md
20+
21+
src/lib/paraglide/

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"@unocss/preset-web-fonts": "catalog:css",
7373
"@unocss/preset-wind4": "catalog:css",
7474
"@vitest/browser-playwright": "catalog:test",
75+
"@vitest/coverage-v8": "catalog:test",
7576
"eslint": "catalog:lint",
7677
"eslint-plugin-svelte": "catalog:lint",
7778
"flowbite": "catalog:components",

pnpm-lock.yaml

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ catalogs:
4747
test:
4848
'@playwright/test': ^1.57.0
4949
'@vitest/browser-playwright': ^4.0.18
50+
'@vitest/coverage-v8': ^4.0.18
5051
playwright: ^1.57.0
5152
vitest: ^4.0.18
5253
vitest-browser-svelte: ^2.0.2

vite.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,12 @@ export default defineConfig({
4040
},
4141
},
4242
],
43+
coverage: {
44+
enabled: true,
45+
reporter: ['text', 'lcov', 'cobertura'],
46+
provider: 'v8',
47+
include: ['src/**/*.{ts,svelte}'],
48+
exclude: ['**/*.{interface,type,d}.ts', '**/{interfaces,types}/*.ts', '**/index.{js,ts}'],
49+
},
4350
},
4451
});

0 commit comments

Comments
 (0)