Skip to content

A fast, helpful, and open-source document parser

chore: config vitest with min timeout of 30 secs

Clelia (Astra) Bertelliac50f8ba189e
diff --git a/vitest.config.ts b/vitest.config.ts
new file mode 100644
index 0000000..f2de319
--- /dev/null
+++ b/vitest.config.ts
@@ -0,0 +1,26 @@
+import { defineConfig } from "vitest/config";
+
+export default defineConfig({
+ test: {
+ globals: true,
+ environment: "node",
+ testTimeout: 30000,
+ hookTimeout: 30000,
+ teardownTimeout: 30000,
+ coverage: {
+ provider: "v8",
+ reporter: ["text", "json", "html"],
+ exclude: ["node_modules/", "dist/"],
+ },
+ unstubEnvs: true,
+ },
+ resolve: {
+ alias: {
+ "@": "./src",
+ },
+ conditions: ["node", "import", "module", "default"],
+ },
+ esbuild: {
+ target: "es2022",
+ },
+});