Commit 550c18ff authored by Janka Uryga's avatar Janka Uryga

test: convert terser-class-static-blocks.ts to nextTestSetup

parent 3abfd56a
import { createNextDescribe } from 'e2e-utils' import { nextTestSetup } from 'e2e-utils'
createNextDescribe( describe('terser-class-static-blocks', () => {
'terser-class-static-blocks', const { next } = nextTestSetup({
{
files: __dirname, files: __dirname,
nextConfig: { nextConfig: {
swcMinify: false, swcMinify: false,
}, },
}, })
({ next }) => {
it('should work using cheerio', async () => { it('should work using cheerio', async () => {
const $ = await next.render$('/') const $ = await next.render$('/')
expect($('p').text()).toBe('hello world') expect($('p').text()).toBe('hello world')
}) })
} })
)
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