Skip to content

Commit

Permalink
ci: output lcov info
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Feb 23, 2024
1 parent 4715c73 commit 280e848
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@
"@tanstack/react-query": "^5.22.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.2.57",
"@types/node": "^20.11.20",
"@types/react": "^18.2.58",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.3.1",
"chance": "^1.1.11",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react": "^1.1.7",
"eslint-plugin-react": "^7.33.2",
Expand Down
11 changes: 7 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export default defineConfig({
emptyOutDir: false,
lib: {
entry: [
resolve(__dirname, './src/index.ts'),
resolve(__dirname, './src/react-router.ts'),
resolve(__dirname, './src/react-helmet-async.ts'),
resolve(__dirname, './src/react-query.ts'),
resolve(import.meta.dirname, './src/index.ts'),
resolve(import.meta.dirname, './src/react-router.ts'),
resolve(import.meta.dirname, './src/react-helmet-async.ts'),
resolve(import.meta.dirname, './src/react-query.ts'),
],
formats: ['es', 'cjs'],
},
Expand All @@ -27,6 +27,9 @@ export default defineConfig({
environment: 'happy-dom',
setupFiles: ['./__tests__/setup-tests.ts'],
include: ['./src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
coverage: {
reporter: [process.env.CI ? 'text-summary' : 'text', 'lcovonly'],
},
},
plugins: [
react(),
Expand Down

0 comments on commit 280e848

Please sign in to comment.