File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ class WebpackConfig {
664
664
665
665
enableForkedTypeScriptTypesChecking ( forkedTypeScriptTypesCheckOptionsCallback = ( ) => { } ) {
666
666
if ( this . useBabelTypeScriptPreset ) {
667
- throw new Error ( 'Encore.enableBabelTypeScriptPreset () can not be called when Encore.enableForkedTypeScriptTypesChecking () has been called.' ) ;
667
+ throw new Error ( 'Encore.enableForkedTypeScriptTypesChecking () can not be called when Encore.enableBabelTypeScriptPreset () has been called.' ) ;
668
668
}
669
669
670
670
if ( typeof forkedTypeScriptTypesCheckOptionsCallback !== 'function' ) {
Original file line number Diff line number Diff line change @@ -873,7 +873,7 @@ describe('WebpackConfig object', () => {
873
873
} ) . to . throw ( 'must be a callback function' ) ;
874
874
} ) ;
875
875
876
- it ( 'TypeScript can not be compiled by ts-loader is Babel is already handling TypeScript' , ( ) => {
876
+ it ( 'TypeScript can not be compiled by ts-loader if Babel is already handling TypeScript' , ( ) => {
877
877
const config = createConfig ( ) ;
878
878
config . enableBabelTypeScriptPreset ( ) ;
879
879
@@ -903,11 +903,11 @@ describe('WebpackConfig object', () => {
903
903
904
904
it ( 'TypeScript can not be compiled by Babel if forked types checking is enabled' , ( ) => {
905
905
const config = createConfig ( ) ;
906
- config . enableForkedTypeScriptTypesChecking ( ) ;
906
+ config . enableBabelTypeScriptPreset ( ) ;
907
907
908
908
expect ( function ( ) {
909
- config . enableBabelTypeScriptPreset ( ) ;
910
- } ) . to . throw ( 'Encore.enableBabelTypeScriptPreset () can not be called when Encore.enableForkedTypeScriptTypesChecking () has been called.' ) ;
909
+ config . enableForkedTypeScriptTypesChecking ( ) ;
910
+ } ) . to . throw ( 'Encore.enableForkedTypeScriptTypesChecking () can not be called when Encore.enableBabelTypeScriptPreset () has been called.' ) ;
911
911
} ) ;
912
912
} ) ;
913
913
You can’t perform that action at this time.
0 commit comments