-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
45 lines (43 loc) · 1.86 KB
/
vitest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import path from "node:path"
import { defineConfig } from "vitest/config"
const relative = (relativePath: string) => {
return path.resolve(import.meta.dirname, relativePath)
}
export default defineConfig({
test: {
environment: "node",
coverage: {
provider: "istanbul",
reporter: ["lcov"],
include: ["packages/*/src"],
},
},
resolve: {
alias: {
"@otterhttp/accepts": relative("packages/accepts/src"),
"@otterhttp/app": relative("packages/app/src"),
"@otterhttp/content-disposition": relative("packages/content-disposition/src"),
"@otterhttp/content-type": relative("packages/content-type/src"),
"@otterhttp/cookie": relative("packages/cookie/src"),
"@otterhttp/cookie-signature": relative("packages/cookie-signature/src"),
"@otterhttp/dotenv": relative("packages/dotenv/src"),
"@otterhttp/encode-url": relative("packages/encode-url/src"),
"@otterhttp/errors": relative("packages/errors/src"),
"@otterhttp/etag": relative("packages/etag/src"),
"@otterhttp/forwarded": relative("packages/forwarded/src"),
"@otterhttp/ip-filter": relative("packages/ip-filter/src"),
"@otterhttp/jsonp": relative("packages/jsonp/src"),
"@otterhttp/parameters": relative("packages/parameters/src"),
"@otterhttp/proxy-address": relative("packages/proxy-address/src"),
"@otterhttp/rate-limit": relative("packages/rate-limit/src"),
"@otterhttp/request": relative("packages/request/src"),
"@otterhttp/response": relative("packages/response/src"),
"@otterhttp/router": relative("packages/router/src"),
"@otterhttp/send": relative("packages/send/src"),
"@otterhttp/type-is": relative("packages/type-is/src"),
"@otterhttp/url": relative("packages/url/src"),
"@otterhttp/vary": relative("packages/vary/src"),
"@": relative("."),
},
},
})