Skip to content

Commit 82e17e3

Browse files
author
David Paz
committed
Remove unnecessary functional test
1 parent 4d5319d commit 82e17e3

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

test/functional.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -617,36 +617,6 @@ module.exports = {
617617
});
618618
});
619619

620-
it('When enabled, react JSX and TypeScript work nice together!', (done) => {
621-
const config = createWebpackConfig('www/build', 'dev');
622-
config.setPublicPath('/build');
623-
config.addEntry('main', ['./js/CoolReactComponent.jsx', './js/render2.tsx']);
624-
config.enableReactPreset();
625-
const testCallback = () => {};
626-
config.enableTypeScriptLoader(testCallback);
627-
628-
testSetup.runWebpack(config, (webpackAssert) => {
629-
// check that babel transformed the JSX
630-
webpackAssert.assertOutputFileContains(
631-
'main.js',
632-
'React.createElement'
633-
);
634-
635-
// and also ts-loader did its job
636-
webpackAssert.assertOutputFileContains(
637-
'main.js',
638-
'document.getElementById(\'app\').innerHTML = "<h1>Welcome to Your TypeScript App</h1>";'
639-
);
640-
641-
expect(config.outputPath).to.be.a.directory().with.deep.files([
642-
'main.js',
643-
'manifest.json'
644-
]);
645-
646-
done();
647-
});
648-
});
649-
650620
it('The output directory is cleaned between builds', (done) => {
651621
const config = createWebpackConfig('www/build', 'dev');
652622
config.setPublicPath('/build');

0 commit comments

Comments
 (0)