@@ -32,6 +32,11 @@ fn test_extend_tsconfig() {
3232 assert_eq ! ( compiler_options. emit_decorator_metadata, Some ( true ) ) ;
3333 assert_eq ! ( compiler_options. use_define_for_class_fields, Some ( true ) ) ;
3434 assert_eq ! ( compiler_options. rewrite_relative_import_extensions, Some ( true ) ) ;
35+
36+ assert_eq ! ( compiler_options. jsx, Some ( "react-jsx" . to_string( ) ) ) ;
37+ assert_eq ! ( compiler_options. jsx_factory, Some ( "React.createElement" . to_string( ) ) ) ;
38+ assert_eq ! ( compiler_options. jsx_fragment_factory, Some ( "React.Fragment" . to_string( ) ) ) ;
39+ assert_eq ! ( compiler_options. jsx_import_source, Some ( "react" . to_string( ) ) ) ;
3540}
3641
3742#[ test]
@@ -72,28 +77,6 @@ fn test_extend_tsconfig_override_behavior() {
7277 assert_eq ! ( compiler_options. target, Some ( "ES2020" . to_string( ) ) ) ;
7378}
7479
75- #[ test]
76- fn test_extend_tsconfig_jsx_options ( ) {
77- let f = super :: fixture_root ( ) . join ( "tsconfig/cases/extends-jsx" ) ;
78-
79- let resolver = Resolver :: new ( ResolveOptions {
80- tsconfig : Some ( TsconfigOptions {
81- config_file : f. join ( "tsconfig.json" ) ,
82- references : TsconfigReferences :: Auto ,
83- } ) ,
84- ..ResolveOptions :: default ( )
85- } ) ;
86-
87- let resolution = resolver. resolve_tsconfig ( & f) . expect ( "resolved" ) ;
88- let compiler_options = resolution. compiler_options ( ) ;
89-
90- // Should inherit all JSX-related options
91- assert_eq ! ( compiler_options. jsx, Some ( "react-jsx" . to_string( ) ) ) ;
92- assert_eq ! ( compiler_options. jsx_factory, Some ( "React.createElement" . to_string( ) ) ) ;
93- assert_eq ! ( compiler_options. jsx_fragment_factory, Some ( "React.Fragment" . to_string( ) ) ) ;
94- assert_eq ! ( compiler_options. jsx_import_source, Some ( "react" . to_string( ) ) ) ;
95- }
96-
9780#[ test]
9881fn test_extend_tsconfig_template_variables ( ) {
9982 let f = super :: fixture_root ( ) . join ( "tsconfig/cases/extends-template-vars" ) ;
0 commit comments