Skip to content

Commit d46a89b

Browse files
committed
[CI] Fix tests in lowest and highest jobs
1 parent a90f06e commit d46a89b

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

test/functional.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,37 +1268,6 @@ module.exports = {
12681268
});
12691269
});
12701270

1271-
it('Babel does not force transforms if they are not needed', function(done) {
1272-
const cwd = process.cwd();
1273-
const appDir = testSetup.createTestAppDir();
1274-
process.chdir(appDir);
1275-
1276-
fs.writeFileSync(
1277-
path.join(appDir, 'package.json'),
1278-
1279-
// Chrome 55 supports async and arrow functions
1280-
'{"browserslist": "Chrome 55"}'
1281-
);
1282-
1283-
const config = createWebpackConfig('www/build', 'prod');
1284-
config.setPublicPath('/build');
1285-
config.addEntry('async', './js/async_function.js');
1286-
config.configureBabel(null, {
1287-
useBuiltIns: 'usage',
1288-
corejs: 3,
1289-
});
1290-
1291-
testSetup.runWebpack(config, async(webpackAssert) => {
1292-
webpackAssert.assertOutputFileContains(
1293-
'async.js',
1294-
'async function(){console.log("foo")}().then((()=>{console.log("bar")}))'
1295-
);
1296-
1297-
process.chdir(cwd);
1298-
done();
1299-
});
1300-
});
1301-
13021271
it('When enabled, react JSX is transformed!', function(done) {
13031272
const config = createWebpackConfig('www/build', 'dev');
13041273
config.setPublicPath('/build');

0 commit comments

Comments
 (0)