Skip to content

Commit

Permalink
fix: add playwright args
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlwn123 authored and elsirion committed Oct 22, 2024
1 parent fbef0ec commit 44998c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
"skipLibCheck": true,
"types": ["@vitest/browser/providers/playwright"]
}
}
5 changes: 5 additions & 0 deletions vitest.workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export default defineWorkspace([
// name: 'chrome',
name: 'chromium',
provider: 'playwright',
providerOptions: {
launch: {
args: ['--disable-gpu', '--no-sandbox', '--disable-setuid-sandbox'],
},
},
ui: false, // no ui for the core library
api: {
port: 63315,
Expand Down

0 comments on commit 44998c6

Please sign in to comment.