File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,6 @@ jest.mock(
65
65
{ virtual : true } ,
66
66
)
67
67
68
- jest . mock (
69
- 'server/app-paths-manifest.json' ,
70
- ( ) => ( {
71
- '/blog/(test)/[author]/[slug]/page' : 'app/blog/[author]/[slug]/page.js' ,
72
- } ) ,
73
- { virtual : true } ,
74
- )
75
-
76
68
jest . mock (
77
69
'routes-manifest.json' ,
78
70
( ) => ( {
@@ -113,6 +105,10 @@ jest.mock(
113
105
{ virtual : true } ,
114
106
)
115
107
108
+ const appPathsManifest = {
109
+ '/blog/(test)/[author]/[slug]/page' : 'app/blog/[author]/[slug]/page.js' ,
110
+ }
111
+
116
112
let NetlifyNextServer : NetlifyNextServerType
117
113
beforeAll ( ( ) => {
118
114
const NextServer : NextServerType = require ( getServerFile ( __dirname , false ) ) . default
@@ -125,8 +121,7 @@ beforeAll(() => {
125
121
this . nextConfig = nextOptions . conf
126
122
this . netlifyConfig = netlifyConfig
127
123
this . renderOpts = { previewProps : { } }
128
- this . hasAppDir = Boolean ( this . nextConfig ?. experimental ?. appDir )
129
- this . appPathsManifest = this . getAppPathsManifest ( )
124
+ this . appPathsManifest = appPathsManifest
130
125
}
131
126
Object . setPrototypeOf ( NetlifyNextServer , MockNetlifyNextServerConstructor )
132
127
} )
You can’t perform that action at this time.
0 commit comments