Skip to content

Commit 098282a

Browse files
committed
change mock data to include _error
1 parent 34cee90 commit 098282a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/nextjs/test/config.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const defaultsObject = { defaultConfig: {} as NextConfigObject };
9090
const serverWebpackConfig = {
9191
entry: () =>
9292
Promise.resolve({
93-
'pages/api/dogs/[name]': 'private-next-pages/api/dogs/[name].js',
93+
'pages/_error': 'private-next-pages/_error.js',
9494
'pages/_app': ['./node_modules/smellOVision/index.js', 'private-next-pages/_app.js'],
9595
'pages/api/simulator/dogStats/[name]': { import: 'private-next-pages/api/simulator/dogStats/[name].js' },
9696
'pages/api/simulator/leaderboard': {
@@ -111,6 +111,7 @@ const clientWebpackConfig = {
111111
Promise.resolve({
112112
main: './src/index.ts',
113113
'pages/_app': 'next-client-pages-loader?page=%2F_app',
114+
'pages/_error': 'next-client-pages-loader?page=%2F_error',
114115
}),
115116
output: { filename: 'static/chunks/[name].js', path: '/Users/Maisey/projects/squirrelChasingSimulator/.next' },
116117
target: 'web',
@@ -316,8 +317,8 @@ describe('webpack config', () => {
316317
expect(finalWebpackConfig.entry).toEqual(
317318
expect.objectContaining({
318319
// original entrypoint value is a string
319-
// (was 'private-next-pages/api/dogs/[name].js')
320-
'pages/api/dogs/[name]': [rewriteFramesHelper, serverConfigFilePath, 'private-next-pages/api/dogs/[name].js'],
320+
// (was 'private-next-pages/_error.js')
321+
'pages/_error': [rewriteFramesHelper, serverConfigFilePath, 'private-next-pages/_error.js'],
321322

322323
// original entrypoint value is a string array
323324
// (was ['./node_modules/smellOVision/index.js', 'private-next-pages/_app.js'])

0 commit comments

Comments
 (0)