File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -617,36 +617,6 @@ module.exports = {
617
617
} ) ;
618
618
} ) ;
619
619
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
-
650
620
it ( 'The output directory is cleaned between builds' , ( done ) => {
651
621
const config = createWebpackConfig ( 'www/build' , 'dev' ) ;
652
622
config . setPublicPath ( '/build' ) ;
You can’t perform that action at this time.
0 commit comments