Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Oct 14, 2022
1 parent 3c8385e commit b332257
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/src/config/types.ts
Expand Up @@ -97,7 +97,7 @@ export type BuildContext = {
config: any;
webpack: { version: string };
// eslint-disable-next-line @typescript-eslint/no-explicit-any
defaultLoaders: { babel: any };
defaultLoaders: any;
totalPages: number;
nextRuntime?: 'nodejs' | 'edge';
};
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs/test/config/fixtures.ts
Expand Up @@ -93,6 +93,8 @@ export function getBuildContext(
...materializedNextConfig,
} as NextConfigObject,
webpack: { version: webpackVersion },
defaultLoaders: true,
totalPages: 2,
isServer: buildTarget === 'server',
};
}
Expand Down

0 comments on commit b332257

Please sign in to comment.