mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? Update terser to the latest version. ### Why? We need https://github.com/terser/terser/commit/c677e285261a0f115409a42015bd3664c8416534 which adds supports for class static blocks. ### How? Closes PACK-2285 Fixes #60837
18 lines
349 B
TypeScript
18 lines
349 B
TypeScript
import { createNextDescribe } from 'e2e-utils'
|
|
|
|
createNextDescribe(
|
|
'terser-class-static-blocks',
|
|
{
|
|
files: __dirname,
|
|
nextConfig: {
|
|
swcMinify: false,
|
|
},
|
|
},
|
|
({ next }) => {
|
|
it('should work using cheerio', async () => {
|
|
const $ = await next.render$('/')
|
|
expect($('p').text()).toBe('hello world')
|
|
})
|
|
}
|
|
)
|