@@ -139,7 +139,7 @@ describe('constructWebpackConfigFunction()', () => {
139139 ) ;
140140 } ) ;
141141
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 ( ) => {
143143 const finalServerWebpackConfig = await materializeFinalWebpackConfig ( {
144144 exportedNextConfig,
145145 incomingWebpackConfig : serverWebpackConfig ,
@@ -158,7 +158,7 @@ describe('constructWebpackConfigFunction()', () => {
158158 ) ;
159159 expect ( finalClientWebpackConfig . entry ) . toEqual (
160160 expect . objectContaining ( {
161- 'pages/_app' : expect . not . arrayContaining ( [ clientConfigFilePath ] ) ,
161+ 'pages/_app' : expect . arrayContaining ( [ clientConfigFilePath ] ) ,
162162 } ) ,
163163 ) ;
164164 } ) ;
@@ -233,9 +233,9 @@ describe('constructWebpackConfigFunction()', () => {
233233 } ) ;
234234
235235 expect ( finalWebpackConfig . entry ) . toEqual ( {
236- main : [ './sentry.client.config.js' , './ src/index.ts'] ,
236+ main : './src/index.ts' ,
237237 // 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'] ,
239239 'pages/_error' : 'next-client-pages-loader?page=%2F_error' ,
240240 'pages/sniffTour' : [ './node_modules/smellOVision/index.js' , 'private-next-pages/sniffTour.js' ] ,
241241 'pages/simulator/leaderboard' : {
0 commit comments