Skip to content

Commit b332257

Browse files
committed
Fix tests
1 parent 3c8385e commit b332257

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/nextjs/src/config/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export type BuildContext = {
9797
config: any;
9898
webpack: { version: string };
9999
// eslint-disable-next-line @typescript-eslint/no-explicit-any
100-
defaultLoaders: { babel: any };
100+
defaultLoaders: any;
101101
totalPages: number;
102102
nextRuntime?: 'nodejs' | 'edge';
103103
};

packages/nextjs/test/config/fixtures.ts

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ export function getBuildContext(
9393
...materializedNextConfig,
9494
} as NextConfigObject,
9595
webpack: { version: webpackVersion },
96+
defaultLoaders: true,
97+
totalPages: 2,
9698
isServer: buildTarget === 'server',
9799
};
98100
}

0 commit comments

Comments
 (0)