Skip to content

Commit

Permalink
Enable source maps in tests (#10725)
Browse files Browse the repository at this point in the history
The `tsconfig` files were unified with a common configuration in #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
  • Loading branch information
Chris Barber authored Oct 17, 2023
1 parent 88715ad commit 5e6ef3d
Show file tree
Hide file tree
Showing 15 changed files with 62 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .changeset/light-pugs-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
3 changes: 3 additions & 0 deletions packages/build-utils/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
3 changes: 3 additions & 0 deletions packages/cli/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["**/*.test.ts"]
}
3 changes: 3 additions & 0 deletions packages/client/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
3 changes: 2 additions & 1 deletion packages/error-utils/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"sourceMap": true,
"types": ["node", "jest"]
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
7 changes: 7 additions & 0 deletions packages/frameworks/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
3 changes: 3 additions & 0 deletions packages/fs-detectors/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
7 changes: 7 additions & 0 deletions packages/go/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
11 changes: 6 additions & 5 deletions packages/next/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 4 deletions packages/node/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../tsconfig.json",
"include": ["**/*.test.ts"],
"compilerOptions": {
"allowJs": true
}
"allowJs": true,
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["**/*.test.ts"]
}
3 changes: 3 additions & 0 deletions packages/python/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
3 changes: 3 additions & 0 deletions packages/remix/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
7 changes: 7 additions & 0 deletions packages/routing-utils/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.spec.ts"]
}
9 changes: 5 additions & 4 deletions packages/static-build/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../tsconfig.json",
"include": ["*.test.ts"],
"compilerOptions": {
"allowJs": true
}
"allowJs": true,
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}
3 changes: 3 additions & 0 deletions packages/static-config/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"compilerOptions": {
"sourceMap": true
},
"extends": "../tsconfig.json",
"include": ["*.test.ts"]
}

0 comments on commit 5e6ef3d

Please sign in to comment.