From a291b0dca5edb18f49b5bbd7460c188a482df7da Mon Sep 17 00:00:00 2001 From: Grant Forrest Date: Mon, 16 Dec 2024 16:01:23 -0500 Subject: [PATCH] attempt to fix unit tests in ci --- .github/workflows/tests.yaml | 2 ++ packages/react/vitest.config.ts | 3 ++- verdant.code-workspace | 37 ++++++++++++++++++--------------- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 077ed77a..59d9354b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -23,6 +23,8 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Install playwright + run: pnpx playwright install - name: Typecheck run: pnpm typecheck diff --git a/packages/react/vitest.config.ts b/packages/react/vitest.config.ts index 594cc9ea..703770ce 100644 --- a/packages/react/vitest.config.ts +++ b/packages/react/vitest.config.ts @@ -5,7 +5,8 @@ export default defineConfig({ browser: { provider: 'playwright', enabled: true, - name: 'chromium' + name: 'chromium', + headless: true, }, clearMocks: true, }, diff --git a/verdant.code-workspace b/verdant.code-workspace index f24f8b57..277a5ce9 100644 --- a/verdant.code-workspace +++ b/verdant.code-workspace @@ -2,62 +2,65 @@ "folders": [ { "name": "๐ŸŒฟ Store", - "path": "packages/store" + "path": "packages/store", }, { "name": "๐Ÿ’ฝ Server", - "path": "packages/server" + "path": "packages/server", }, { "name": "๐Ÿชข Common", - "path": "packages/common" + "path": "packages/common", }, { "name": "๐Ÿง‘โ€๐Ÿ’ป CLI", - "path": "packages/cli" + "path": "packages/cli", }, { "name": "โš›๏ธ React", - "path": "packages/react" + "path": "packages/react", }, { "name": "๐Ÿ”— Router", - "path": "packages/react-router" + "path": "packages/react-router", }, { "name": "๐Ÿ“ฆ Create App", - "path": "packages/create-app" + "path": "packages/create-app", }, { "name": "๐Ÿ›ข๏ธ SQLite Persistence", - "path": "packages/persistence-sqlite" + "path": "packages/persistence-sqlite", }, { "name": "๐Ÿ“ฑ Capacitor SQLite", - "path": "packages/persistence-capacitor-sqlite" + "path": "packages/persistence-capacitor-sqlite", }, { "name": "๐Ÿ—„๏ธ S3 Files", - "path": "packages/file-storage-s3" + "path": "packages/file-storage-s3", }, { "name": "๐Ÿงช Tests", - "path": "test" + "path": "test", }, { "name": "๐Ÿ“ƒ Docs", - "path": "docs" + "path": "docs", }, { "name": "๐Ÿ“ Scratchpad", - "path": "scratchpad" + "path": "scratchpad", }, { "name": "โš™๏ธ Configs", - "path": "configs" - } + "path": "configs", + }, + { + "path": ".github", + }, ], "settings": { - "vitest.workspaceConfig": "./configs/vitest.workspace.ts" - } + "vitest.workspaceConfig": "./configs/vitest.workspace.ts", + }, }