Appearance
vitest.config.ts โ
From Week 3 in-class: MongoDB + Vitest ยท original: si-679-f-26-week03-nyt-jessicadonoho/vitest.config.ts ยท all files in this project
ts
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
// Starting a throwaway MongoDB takes longer than Vitest's default
// 10-second limit for setup code โ especially the first time, when it
// has to download the database itself.
hookTimeout: 120_000,
testTimeout: 20_000,
},
});