mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 04:22:12 +00:00
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:
2
.changeset/light-pugs-give.md
Normal file
2
.changeset/light-pugs-give.md
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
---
|
||||
3
packages/build-utils/test/tsconfig.json
vendored
3
packages/build-utils/test/tsconfig.json
vendored
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
|
||||
3
packages/cli/test/tsconfig.json
vendored
3
packages/cli/test/tsconfig.json
vendored
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["**/*.test.ts"]
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
|
||||
3
packages/error-utils/test/tsconfig.json
vendored
3
packages/error-utils/test/tsconfig.json
vendored
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"sourceMap": true,
|
||||
"types": ["node", "jest"]
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
|
||||
7
packages/frameworks/test/tsconfig.json
vendored
Normal file
7
packages/frameworks/test/tsconfig.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
3
packages/fs-detectors/test/tsconfig.json
vendored
3
packages/fs-detectors/test/tsconfig.json
vendored
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
|
||||
7
packages/go/test/tsconfig.json
vendored
Normal file
7
packages/go/test/tsconfig.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
11
packages/next/test/tsconfig.json
vendored
11
packages/next/test/tsconfig.json
vendored
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["**/*.test.ts"],
|
||||
"compilerOptions": {
|
||||
"types": ["jest"],
|
||||
"allowJs": true
|
||||
}
|
||||
"allowJs": true,
|
||||
"sourceMap": true,
|
||||
"types": ["jest"]
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["**/*.test.ts"]
|
||||
}
|
||||
|
||||
9
packages/node/test/tsconfig.json
vendored
9
packages/node/test/tsconfig.json
vendored
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["**/*.test.ts"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true
|
||||
}
|
||||
"allowJs": true,
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["**/*.test.ts"]
|
||||
}
|
||||
|
||||
3
packages/python/test/tsconfig.json
vendored
3
packages/python/test/tsconfig.json
vendored
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
|
||||
3
packages/remix/test/tsconfig.json
vendored
3
packages/remix/test/tsconfig.json
vendored
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
|
||||
7
packages/routing-utils/test/tsconfig.json
vendored
Normal file
7
packages/routing-utils/test/tsconfig.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.spec.ts"]
|
||||
}
|
||||
9
packages/static-build/test/tsconfig.json
vendored
9
packages/static-build/test/tsconfig.json
vendored
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true
|
||||
}
|
||||
"allowJs": true,
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
|
||||
3
packages/static-config/test/tsconfig.json
vendored
3
packages/static-config/test/tsconfig.json
vendored
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true
|
||||
},
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["*.test.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user