Enable source maps in tests (#10725)

The `tsconfig` files were unified with a common configuration in https://github.com/vercel/vercel/pull/10667 including disabling source maps. The source maps greatly increase the distribution size, but they are invaluable when the tests run, so this PR enables source maps for tests including adding a `tsconfig.json` where absent.

Linear: https://linear.app/vercel/issue/ZERO-364/enable-sourcemaps-in-all-testtsconfigjson-files
This commit is contained in:
Chris Barber
2023-10-17 10:15:29 -05:00
committed by GitHub
parent 88715ad598
commit 5e6ef3d569
15 changed files with 62 additions and 14 deletions

View File

@@ -0,0 +1,2 @@
---
---

View File

@@ -1,4 +1,7 @@
{ {
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"include": ["*.test.ts"] "include": ["*.test.ts"]
} }

View File

@@ -1,4 +1,7 @@
{ {
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"include": ["**/*.test.ts"] "include": ["**/*.test.ts"]
} }

View File

@@ -1,4 +1,7 @@
{ {
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"include": ["*.test.ts"] "include": ["*.test.ts"]
} }

View File

@@ -1,7 +1,8 @@
{ {
"extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"sourceMap": true,
"types": ["node", "jest"] "types": ["node", "jest"]
}, },
"extends": "../tsconfig.json",
"include": ["*.test.ts"] "include": ["*.test.ts"]
} }

View File

@@ -0,0 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}

View File

@@ -1,4 +1,7 @@
{ {
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"include": ["*.test.ts"] "include": ["*.test.ts"]
} }

7
packages/go/test/tsconfig.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}

View File

@@ -1,8 +1,9 @@
{ {
"extends": "../tsconfig.json",
"include": ["**/*.test.ts"],
"compilerOptions": { "compilerOptions": {
"types": ["jest"], "allowJs": true,
"allowJs": true "sourceMap": true,
} "types": ["jest"]
},
"extends": "../tsconfig.json",
"include": ["**/*.test.ts"]
} }

View File

@@ -1,7 +1,8 @@
{ {
"extends": "../tsconfig.json",
"include": ["**/*.test.ts"],
"compilerOptions": { "compilerOptions": {
"allowJs": true "allowJs": true,
} "sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["**/*.test.ts"]
} }

View File

@@ -1,4 +1,7 @@
{ {
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"include": ["*.test.ts"] "include": ["*.test.ts"]
} }

View File

@@ -1,4 +1,7 @@
{ {
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"include": ["*.test.ts"] "include": ["*.test.ts"]
} }

View File

@@ -0,0 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.spec.ts"]
}

View File

@@ -1,7 +1,8 @@
{ {
"extends": "../tsconfig.json",
"include": ["*.test.ts"],
"compilerOptions": { "compilerOptions": {
"allowJs": true "allowJs": true,
} "sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
} }

View File

@@ -1,4 +1,7 @@
{ {
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"include": ["*.test.ts"] "include": ["*.test.ts"]
} }