Skip to content

Commit

Permalink
Corrected some config
Browse files Browse the repository at this point in the history
Closes #243
  • Loading branch information
tombeckenham committed Dec 11, 2024
1 parent 879a236 commit c2c9d70
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default [

// Test files specific config
{
files: ['e2e/**/*', 'playwright.config.ts'],
files: ['e2e/**/*', 'playwright.config.ts', 'vitest.config.ts'],
languageOptions: {
parserOptions: {
project: './tsconfig.test.json',
Expand Down
3 changes: 0 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ export default defineConfig({
use: {
...devices['Desktop Chrome'],
// Chrome extension testing configuration
contextOptions: {
extensionPath: './dist',
},
},
},

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
"outDir": "./dist"
},
"exclude": ["./node_modules", "src/ui/utils/modules"],
"include": ["src", "__tests__", "tests"]
"include": ["src", "__tests__"]
}
2 changes: 1 addition & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["e2e/**/*", "playwright.config.ts"],
"include": ["e2e/**/*", "playwright.config.ts", "vitest.config.ts"],
"compilerOptions": {
"types": ["@playwright/test"]
}
Expand Down
12 changes: 12 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/e2e/**',
'**/.{idea,git,cache,output,temp}/**',
],
},
});

0 comments on commit c2c9d70

Please sign in to comment.