diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d291c78..ed2eac7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,4 +49,4 @@ jobs: run: pnpm install - name: Run tests - run: pnpm test run + run: pnpm test diff --git a/nuxt.config.ts b/nuxt.config.ts index 6df8da6..b5c77ea 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -8,13 +8,15 @@ export default defineNuxtConfig({ /** * Nuxt Modules + * @nuxt/content is excluded in test env — it initializes better-sqlite3 + * (a native addon) which fails in CI Linux runners. */ modules: [ '@nuxt/ui', '@nuxt/image', '@nuxt/eslint', '@nuxt/test-utils/module', - '@nuxt/content', + ...(!process.env.VITEST ? ['@nuxt/content'] : []), 'nuxt-mapbox', 'motion-v/nuxt', ],