Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
29064a5e
Unverified
Commit
29064a5e
authored
Oct 19, 2026
by
Niklas Mischkulnig
Committed by
GitHub
Oct 28, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify tests
parent
2cf4ffee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
index.test.ts
test/e2e/middleware-matcher/index.test.ts
+2
-8
No files found.
test/e2e/middleware-matcher/index.test.ts
View file @
29064a5e
...
...
@@ -678,7 +678,6 @@ describe.each([
export const config = {
matcher: [
'/',
'/with-locale',
{ source: '/es/without-locale', locale: false },
],
};
...
...
@@ -704,13 +703,10 @@ describe.each([
})
it
.
each
([
{
path
:
'/with-locale'
,
locale
:
'en'
,
matched
:
true
},
{
path
:
'/es/with-locale'
,
locale
:
'es'
,
matched
:
true
},
{
path
:
'/without-locale'
,
locale
:
'en'
,
matched
:
false
},
{
path
:
'/en/without-locale'
,
locale
:
'en'
,
matched
:
false
},
{
path
:
'/es/without-locale'
,
locale
:
'es'
,
matched
:
true
},
])(
'respects
matcher locale settings
for $path with basePath'
,
'respects
locale: false
for $path with basePath'
,
async
({
path
,
locale
,
matched
})
=>
{
const
response
=
await
fetchViaHTTP
(
next
.
url
,
`/root
${
path
}
`
)
expect
(
response
.
status
).
toBe
(
200
)
...
...
@@ -724,12 +720,10 @@ describe.each([
)
it
.
each
([
{
path
:
'en/with-locale'
,
locale
:
'en'
,
matched
:
true
},
{
path
:
'es/with-locale'
,
locale
:
'es'
,
matched
:
true
},
{
path
:
'en/without-locale'
,
locale
:
'en'
,
matched
:
false
},
{
path
:
'es/without-locale'
,
locale
:
'es'
,
matched
:
true
},
])(
'respects
matcher locale settings
for the $path data route with basePath'
,
'respects
locale: false
for the $path data route with basePath'
,
async
({
path
,
locale
,
matched
})
=>
{
const
response
=
await
fetchViaHTTP
(
next
.
url
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment