You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Next 16 stable still shows this warning, only canary changed behavior
153
+
test.skip(major>=16&&isCanary,'Middleware detection is smarter in Next 16 canary.');
145
154
constu=createTestUtils({ app, page, context });
146
155
awaitu.page.goToAppHome();
147
156
expect(app.serveOutput).not.toContain('Your Middleware exists at ./src/middleware.(ts|js)');
148
157
expect(app.serveOutput).toContain(
149
158
'Clerk: clerkMiddleware() was not run, your middleware file might be misplaced. Move your middleware file to ./src/middleware.ts. Currently located at ./src/app/middleware.ts',
150
159
);
151
160
});
161
+
162
+
test('Does not display misplaced middleware error on Next 16 canary',async({ page, context })=>{
163
+
const{ version }=awaitdetectNext(app);
164
+
constmajor=parseSemverMajor(version)??0;
165
+
constisCanary=isCanaryVersion(version);
166
+
test.skip(major<16||!isCanary,'Only applicable on Next 16 canary.');
167
+
constu=createTestUtils({ app, page, context });
168
+
awaitu.page.goToAppHome();
169
+
expect(app.serveOutput).not.toContain('Clerk: clerkMiddleware() was not run');
0 commit comments