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
f11346c8
Commit
f11346c8
authored
Sep 02, 2024
by
Janka Uryga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: convert draftmode.test.ts to nextTestSetup
parent
1f299870
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
99 deletions
+96
-99
draft-mode.test.ts
test/e2e/app-dir/draft-mode/draft-mode.test.ts
+96
-99
No files found.
test/e2e/app-dir/draft-mode/draft-mode.test.ts
View file @
f11346c8
import
{
createNextDescribe
}
from
'e2e-utils'
import
{
nextTestSetup
}
from
'e2e-utils'
import
{
waitFor
}
from
'next-test-utils'
import
{
waitFor
}
from
'next-test-utils'
createNextDescribe
(
describe
(
'app dir - draft mode'
,
()
=>
{
'app dir - draft mode'
,
const
{
next
,
isNextDev
}
=
nextTestSetup
({
{
files
:
__dirname
,
files
:
__dirname
,
},
})
({
next
,
isNextDev
})
=>
{
async
function
runTests
({
basePath
=
'/'
}:
{
basePath
:
string
})
{
async
function
runTests
({
basePath
=
'/'
}:
{
basePath
:
string
})
{
let
origRandHome
=
'unintialized'
let
origRandHome
=
'unintialized'
let
origRandWithCookies
=
'unintialized'
let
origRandWithCookies
=
'unintialized'
...
@@ -116,5 +114,4 @@ createNextDescribe(
...
@@ -116,5 +114,4 @@ createNextDescribe(
describe
(
'in edge runtime'
,
()
=>
{
describe
(
'in edge runtime'
,
()
=>
{
runTests
({
basePath
:
'/with-edge/'
})
runTests
({
basePath
:
'/with-edge/'
})
})
})
}
})
)
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