Explorar el Código

increase hookTimeout for MongoMemoryServer in integration tests

Yuki Takei hace 3 meses
padre
commit
41e11153f7
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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',