Skip to content

Commit 4914d88

Browse files
committed
Fix existing tests
1 parent f4a6da2 commit 4914d88

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

test/e2e/middleware-general/test/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ describe('Middleware Runtime', () => {
3939
),
4040
},
4141
nextConfig: {
42+
// This test needs to intercept internal routes /_next/ (skipped by default)
43+
skipMiddlewareNextInternalRoutes: false,
4244
experimental: {
4345
webpackBuildWorker: true,
4446
},

test/e2e/middleware-trailing-slash/app/next.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
module.exports = {
2+
// This test needs to intercept internal routes /_next/ (skipped by default)
3+
skipMiddlewareNextInternalRoutes: false,
24
trailingSlash: true,
35
redirects() {
46
return [
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
// This test needs to intercept internal routes /_next/ (skipped by default)
3+
skipMiddlewareNextInternalRoutes: false,
4+
}

0 commit comments

Comments
 (0)