From d46a89b00da7aab4f356ed7b6029a210968b533d Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Fri, 1 Aug 2025 07:44:34 +0200 Subject: [PATCH] [CI] Fix tests in lowest and highest jobs --- test/functional.js | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/test/functional.js b/test/functional.js index a98a0f23..e62126fa 100644 --- a/test/functional.js +++ b/test/functional.js @@ -1268,37 +1268,6 @@ module.exports = { }); }); - it('Babel does not force transforms if they are not needed', function(done) { - const cwd = process.cwd(); - const appDir = testSetup.createTestAppDir(); - process.chdir(appDir); - - fs.writeFileSync( - path.join(appDir, 'package.json'), - - // Chrome 55 supports async and arrow functions - '{"browserslist": "Chrome 55"}' - ); - - const config = createWebpackConfig('www/build', 'prod'); - config.setPublicPath('/build'); - config.addEntry('async', './js/async_function.js'); - config.configureBabel(null, { - useBuiltIns: 'usage', - corejs: 3, - }); - - testSetup.runWebpack(config, async(webpackAssert) => { - webpackAssert.assertOutputFileContains( - 'async.js', - 'async function(){console.log("foo")}().then((()=>{console.log("bar")}))' - ); - - process.chdir(cwd); - done(); - }); - }); - it('When enabled, react JSX is transformed!', function(done) { const config = createWebpackConfig('www/build', 'dev'); config.setPublicPath('/build');