File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
test/production/escheck-output Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 1
1
import { createNext } from 'e2e-utils'
2
- import { NextConfig } from 'packages/next'
3
2
import { NextInstance } from 'test/lib/next-modes/base'
4
3
5
4
describe ( 'ES Check .next output' , ( ) => {
@@ -23,29 +22,4 @@ describe('ES Check .next output', () => {
23
22
'info: ES-Check: there were no ES version matching errors! 🎉'
24
23
)
25
24
} )
26
-
27
- it ( 'should emit ES5 with legacyBrowsers: true' , async ( ) => {
28
- const nextConfig : NextConfig = {
29
- experimental : {
30
- legacyBrowsers : true ,
31
- } ,
32
- }
33
- next = await createNext ( {
34
- files : {
35
- 'pages/index.js' : 'export default function Page() { return "hi" }' ,
36
- 'next.config.js' : `module.exports = ${ JSON . stringify ( nextConfig ) } ` ,
37
- } ,
38
- dependencies : { 'es-check' : '7.0.1' } ,
39
- packageJson : {
40
- scripts : {
41
- build : 'next build && es-check es5 .next/static/**/*.js' ,
42
- } ,
43
- } ,
44
- buildCommand : 'yarn build' ,
45
- } )
46
-
47
- expect ( next . cliOutput ) . toContain (
48
- 'info: ES-Check: there were no ES version matching errors! 🎉'
49
- )
50
- } )
51
25
} )
You can’t perform that action at this time.
0 commit comments