@@ -139,7 +139,7 @@ describe('constructWebpackConfigFunction()', () => {
139
139
) ;
140
140
} ) ;
141
141
142
- it ( 'injects user config file into `_app` in server bundle but not in client bundle' , async ( ) => {
142
+ it ( 'injects user config file into `_app` in server bundle and in the client bundle' , async ( ) => {
143
143
const finalServerWebpackConfig = await materializeFinalWebpackConfig ( {
144
144
exportedNextConfig,
145
145
incomingWebpackConfig : serverWebpackConfig ,
@@ -158,7 +158,7 @@ describe('constructWebpackConfigFunction()', () => {
158
158
) ;
159
159
expect ( finalClientWebpackConfig . entry ) . toEqual (
160
160
expect . objectContaining ( {
161
- 'pages/_app' : expect . not . arrayContaining ( [ clientConfigFilePath ] ) ,
161
+ 'pages/_app' : expect . arrayContaining ( [ clientConfigFilePath ] ) ,
162
162
} ) ,
163
163
) ;
164
164
} ) ;
@@ -233,9 +233,9 @@ describe('constructWebpackConfigFunction()', () => {
233
233
} ) ;
234
234
235
235
expect ( finalWebpackConfig . entry ) . toEqual ( {
236
- main : [ './sentry.client.config.js' , './ src/index.ts'] ,
236
+ main : './src/index.ts' ,
237
237
// only _app has config file injected
238
- 'pages/_app' : ' next-client-pages-loader?page=%2F_app',
238
+ 'pages/_app' : [ './sentry.client.config.js' , ' next-client-pages-loader?page=%2F_app'] ,
239
239
'pages/_error' : 'next-client-pages-loader?page=%2F_error' ,
240
240
'pages/sniffTour' : [ './node_modules/smellOVision/index.js' , 'private-next-pages/sniffTour.js' ] ,
241
241
'pages/simulator/leaderboard' : {
0 commit comments