Commit f11346c8 authored by Janka Uryga's avatar Janka Uryga

test: convert draftmode.test.ts to nextTestSetup

parent 1f299870
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/' })
}) })
} })
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment