@@ -28,7 +28,7 @@ fn test_extend_tsconfig() {
2828 assert_eq ! ( resolution. include, Some ( vec![ "include" . to_string( ) ] ) ) ;
2929 assert_eq ! ( resolution. exclude, Some ( vec![ "exclude" . to_string( ) ] ) ) ;
3030
31- let compiler_options = resolution. compiler_options ( ) ;
31+ let compiler_options = & resolution. compiler_options ;
3232 assert_eq ! ( compiler_options. base_url, Some ( f. join( "src" ) ) ) ;
3333 assert_eq ! ( compiler_options. allow_js, Some ( true ) ) ;
3434 assert_eq ! ( compiler_options. emit_decorator_metadata, Some ( true ) ) ;
@@ -72,7 +72,7 @@ fn test_extend_tsconfig_override_behavior() {
7272 } ) ;
7373
7474 let resolution = resolver. resolve_tsconfig ( & f) . expect ( "resolved" ) ;
75- let compiler_options = resolution. compiler_options ( ) ;
75+ let compiler_options = & resolution. compiler_options ;
7676
7777 // Child should override parent values
7878 assert_eq ! ( compiler_options. jsx, Some ( "react" . to_string( ) ) ) ;
@@ -128,7 +128,7 @@ fn test_extend_tsconfig_multiple_inheritance() {
128128 } ) ;
129129
130130 let resolution = resolver. resolve_tsconfig ( & f) . expect ( "resolved" ) ;
131- let compiler_options = resolution. compiler_options ( ) ;
131+ let compiler_options = & resolution. compiler_options ;
132132
133133 // Should have settings from all configs in the chain
134134 assert_eq ! ( compiler_options. experimental_decorators, Some ( true ) ) ;
@@ -149,7 +149,7 @@ fn test_extend_tsconfig_preserves_child_settings() {
149149 } ) ;
150150
151151 let resolution = resolver. resolve_tsconfig ( & f) . expect ( "resolved" ) ;
152- let compiler_options = resolution. compiler_options ( ) ;
152+ let compiler_options = & resolution. compiler_options ;
153153
154154 // Child should preserve its own settings and not inherit conflicting ones
155155 assert_eq ! ( compiler_options. jsx, Some ( "preserve" . to_string( ) ) ) ; // Child value
@@ -185,7 +185,7 @@ fn test_extend_tsconfig_no_override_existing() {
185185 child_tsconfig. extend_tsconfig ( & parent_tsconfig) ;
186186 let child_built = child_tsconfig. build ( ) ;
187187
188- let compiler_options = child_built. compiler_options ( ) ;
188+ let compiler_options = & child_built. compiler_options ;
189189
190190 // Child's jsx should be preserved
191191 assert_eq ! ( compiler_options. jsx, Some ( "preserve" . to_string( ) ) ) ;
0 commit comments