Browse Source

increase hookTimeout for MongoMemoryServer in integration tests

Yuki Takei 2 months ago
parent
commit
41e11153f7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      apps/app/vitest.workspace.mts

+ 2 - 0
apps/app/vitest.workspace.mts

@@ -31,6 +31,8 @@ export default defineWorkspace([
       name: 'app-integration',
       environment: 'node',
       include: ['**/*.integ.ts'],
+      // Allow enough time for MongoMemoryServer to download the binary on first run
+      hookTimeout: 120_000,
       setupFiles: [
         './test/setup/migrate-mongo.ts',
         './test/setup/mongo/index.ts',