| 1 | import { defineConfig } from "vitest/config"; |
| 2 | |
| 3 | export default defineConfig({ |
| 4 | test: { |
| 5 | environment: "node", |
| 6 | timeout: 10000, |
| 7 | globals: true, |
| 8 | include: ["**/*.{test,spec}.?(c|m)[jt]s?(x)"], |
| 9 | }, |
| 10 | resolve: { |
| 11 | alias: { |
| 12 | // Handle .js imports for TypeScript files |
| 13 | "./getAgentOptions.js": "./getAgentOptions.ts", |
| 14 | "./stream.js": "./stream.ts", |
| 15 | "./util.js": "./util.ts", |
| 16 | "./certs.js": "./certs.ts", |
| 17 | "./fetch.js": "./fetch.ts", |
| 18 | }, |
| 19 | }, |
| 20 | }); |