Skip to content

Commit bafc863

Browse files
committed
fix: error build if fixture typechecking fails
1 parent c3c071e commit bafc863

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

crates/next-custom-transforms/tests/fixture/server-actions/modules.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ declare module 'components' {
4949
declare module 'navigation' {
5050
export function redirect(href: string): void
5151
}
52+
53+
// Some tests generate `data:text/javascript,...` imports
54+
declare module 'data:text/*'

crates/next-custom-transforms/tests/fixture/server-actions/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"./server-graph/25/output.js",
3030
"./server-graph/28/output.js",
3131
"./server-graph/30/output.js",
32+
// FIXME: buggy renaming of anonymous functions
33+
"./server-graph/51/output.js",
3234
// Excluded because of weird TS behavior around `action.bind(...)` making args optional
3335
// (but only if no JSDoc type annotations are present)
3436
"./server-graph/24/output.js"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"lint-ast-grep": "ast-grep scan",
4444
"lint-no-typescript": "run-p prettier-check lint-eslint lint-language",
4545
"types-and-precompiled": "run-p lint-typescript check-precompiled check-compiler-fixtures types:test-lib",
46-
"check-compiler-fixtures": "find crates/next-custom-transforms/tests/fixture -type f -name 'tsconfig.json' -exec /bin/sh -c 'echo \"project: $1\"; pnpm tsc --noEmit --project \"$1\"' -- {} \\;",
46+
"check-compiler-fixtures": "find crates/next-custom-transforms/tests/fixture -type f -name 'tsconfig.json' -print0 | xargs --null -n1 -I'{}' pnpm tsc --noEmit --project '{}'",
4747
"validate-externals-doc": "node ./scripts/validate-externals-doc.js",
4848
"lint": "run-p test-types lint-typescript prettier-check lint-eslint lint-ast-grep lint-language",
4949
"lint-fix": "pnpm prettier-fix && pnpm lint-eslint --fix",

0 commit comments

Comments
 (0)