Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Uninen committed Dec 14, 2024
1 parent f9f7bfd commit 2310e5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"email": "[email protected]"
},
"scripts": {
"dev": "DEBUG=0 vite",
"build": "DEBUG=0 vite build",
"test": "DEBUG=0 vitest",
"test:e2e": "DEBUG=0 playwright test --ui",
"test:ci-e2e": "DEBUG=0 playwright test",
"coverage": "DEBUG=0 vitest run --coverage",
"ts": "DEBUG=0 vue-tsc --build --force"
"dev": "vite",
"build": "vite build",
"test": "vitest",
"test:e2e": "playwright test --ui",
"test:ci-e2e": "playwright test",
"coverage": "vitest run --coverage",
"ts": "vue-tsc --build --force"
},
"files": [
"dist",
Expand Down Expand Up @@ -65,9 +65,6 @@
"optional": true
}
},
"engines": {
"node": ">=22"
},
"repository": {
"type": "git",
"url": "git+https://github.com/slipmatio/logger.git"
Expand Down
12 changes: 1 addition & 11 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'
import { defineConfig } from 'vitest/config'

export default defineConfig({
plugins: [vue(), dts({ tsconfigPath: './tsconfig.app.json', rollupTypes: true })],
Expand All @@ -17,14 +17,4 @@ export default defineConfig({
external: ['vue'],
},
},
test: {
globals: true,
include: ['tests/unit/*.{test,spec}.ts', 'src/**/*.spec.ts'],
environment: 'happy-dom',
coverage: {
exclude: ['__mocks__/*', 'tests/*', '**/*.spec.ts'],
provider: 'v8',
reporter: ['text', 'json', 'json-summary'],
},
},
})
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default mergeConfig(
test: {
globals: true,
environment: 'happy-dom',
include: ['tests/unit/**/*.test.ts', 'src/**/*.spec.ts'],
include: ['tests/unit/**/*.test.ts', 'tests/unit/**/*.spec.ts', 'src/**/*.spec.ts'],
root: fileURLToPath(new URL('./', import.meta.url)),
coverage: {
provider: 'v8',
Expand Down

0 comments on commit 2310e5d

Please sign in to comment.