Skip to content

Commit 0e28c4e

Browse files
committed
Remove a wrong test
1 parent 37803f8 commit 0e28c4e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed
Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { createNext } from 'e2e-utils'
2-
import { NextConfig } from 'packages/next'
32
import { NextInstance } from 'test/lib/next-modes/base'
43

54
describe('ES Check .next output', () => {
@@ -23,29 +22,4 @@ describe('ES Check .next output', () => {
2322
'info: ES-Check: there were no ES version matching errors! 🎉'
2423
)
2524
})
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-
})
5125
})

0 commit comments

Comments
 (0)