Skip to content

Commit ef23085

Browse files
committed
add dir to mock data
1 parent fd69a8e commit ef23085

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/nextjs/test/config.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,14 @@ const clientWebpackConfig = {
6363
target: 'web',
6464
context: '/Users/Maisey/projects/squirrelChasingSimulator',
6565
};
66-
const serverBuildContext = { isServer: true, dev: false, buildId: 'doGsaREgReaT' };
67-
const clientBuildContext = { isServer: false, dev: false, buildId: 'doGsaREgReaT' };
66+
67+
const baseBuildContext = {
68+
dev: false,
69+
buildId: 'doGsaREgReaT',
70+
dir: '/Users/Maisey/projects/squirrelChasingSimulator',
71+
};
72+
const serverBuildContext = { isServer: true, ...baseBuildContext };
73+
const clientBuildContext = { isServer: false, ...baseBuildContext };
6874

6975
/**
7076
* Derive the final values of all next config options, by first applying `withSentryConfig` and then, if it returns a

0 commit comments

Comments
 (0)