Skip to content

Commit 2863a7f

Browse files
committed
fix tests
1 parent f4e3422 commit 2863a7f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/nextjs/test/config/fixtures.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const serverWebpackConfig: WebpackConfigObject = {
5656
output: { filename: '[name].js', path: '/Users/Maisey/projects/squirrelChasingSimulator/.next' },
5757
target: 'node',
5858
context: '/Users/Maisey/projects/squirrelChasingSimulator',
59+
resolve: { alias: { 'private-next-pages': '/Users/Maisey/projects/squirrelChasingSimulator/pages' } },
5960
};
6061
export const clientWebpackConfig: WebpackConfigObject = {
6162
entry: () =>

packages/nextjs/test/config/webpack/constructWebpackConfig.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ describe('constructWebpackConfigFunction()', () => {
5050
it("doesn't set devtool if webpack plugin is disabled", () => {
5151
const finalNextConfig = materializeFinalNextConfig({
5252
...exportedNextConfig,
53-
webpack: () => ({ devtool: 'something-besides-source-map' } as any),
53+
webpack: () =>
54+
({
55+
...serverWebpackConfig,
56+
devtool: 'something-besides-source-map',
57+
} as any),
5458
sentry: { disableServerWebpackPlugin: true },
5559
});
5660
const finalWebpackConfig = finalNextConfig.webpack?.(serverWebpackConfig, serverBuildContext);

0 commit comments

Comments
 (0)