From 44998c6310ff6951b55ce618e9edcd002d99ef82 Mon Sep 17 00:00:00 2001 From: Alex Lewin Date: Tue, 22 Oct 2024 12:45:10 +0100 Subject: [PATCH] fix: add playwright args --- tsconfig.base.json | 3 ++- vitest.workspace.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 3b7ab80..2dbc120 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -6,6 +6,7 @@ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, - "skipLibCheck": true + "skipLibCheck": true, + "types": ["@vitest/browser/providers/playwright"] } } diff --git a/vitest.workspace.ts b/vitest.workspace.ts index 25c4e9f..a5d0b5f 100644 --- a/vitest.workspace.ts +++ b/vitest.workspace.ts @@ -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,