Skip to content

Commit 04e445b

Browse files
committed
Attempt at fixing CI errors
1 parent fef3964 commit 04e445b

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

crates/next-dev-tests/test-harness/harness.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as jest from "jest-circus-browser/dist/umd/jest-circus.js";
2-
import expectMod from "expect/build-es5/index.js";
1+
import * as jest from "jest-circus-browser/dist/umd/jest-circus";
2+
import expectMod from "expect/build-es5/index";
33

44
type CallSignature<T extends (...a: any[]) => unknown> = (
55
...a: Parameters<T>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
declare module "jest-circus-browser/dist/umd/jest-circus.js" {
1+
declare module "jest-circus-browser/dist/umd/jest-circus" {
22
export * from "jest-circus";
33
}
44

5-
declare module "expect/build-es5/index.js" {
5+
declare module "expect/build-es5/index" {
66
export { default } from "expect";
77
}

crates/next-dev-tests/tests/integration/next/404/navigate/input/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function Page() {
1515
);
1616
}
1717

18-
type Harness = typeof import("@turbo/pack-test-harness/harness");
18+
type Harness = typeof import("@turbo/pack-test-harness");
1919

2020
function runTests(harness: Harness, iframe: HTMLIFrameElement) {
2121
it("returns a 404 status code", async () => {

crates/next-dev-tests/tests/integration/next/app/metadata/input/next.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ module.exports = {
22
experimental: {
33
appDir: true,
44
},
5-
transpilePackages: ["@turbo/pack-test-harness"],
65
};

crates/next-dev-tests/tests/integration/next/app/metadata/input/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
{
2020
"name": "next"
2121
}
22-
]
22+
],
23+
"paths": {
24+
"@turbo/pack-test-harness": ["../../../../../../test-harness"]
25+
}
2326
},
2427
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
2528
"exclude": ["node_modules"]
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/** @type {import('next').NextConfig} */
22
module.exports = {
33
reactStrictMode: true,
4-
transpilePackages: ["@turbo/pack-test-harness"],
54
};

crates/next-dev-tests/tests/integration/next/tailwind/basic/input/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
1515
"jsx": "preserve",
16-
"incremental": true
16+
"incremental": true,
17+
"paths": {
18+
"@turbo/pack-test-harness": ["../../../../../../test-harness"]
19+
}
1720
},
1821
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "pages/index.jsx"],
1922
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)