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 {
664664
665665 enableForkedTypeScriptTypesChecking ( forkedTypeScriptTypesCheckOptionsCallback = ( ) => { } ) {
666666 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.' ) ;
668668 }
669669
670670 if ( typeof forkedTypeScriptTypesCheckOptionsCallback !== 'function' ) {
Original file line number Diff line number Diff line change @@ -873,7 +873,7 @@ describe('WebpackConfig object', () => {
873873 } ) . to . throw ( 'must be a callback function' ) ;
874874 } ) ;
875875
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' , ( ) => {
877877 const config = createConfig ( ) ;
878878 config . enableBabelTypeScriptPreset ( ) ;
879879
@@ -903,11 +903,11 @@ describe('WebpackConfig object', () => {
903903
904904 it ( 'TypeScript can not be compiled by Babel if forked types checking is enabled' , ( ) => {
905905 const config = createConfig ( ) ;
906- config . enableForkedTypeScriptTypesChecking ( ) ;
906+ config . enableBabelTypeScriptPreset ( ) ;
907907
908908 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.' ) ;
911911 } ) ;
912912 } ) ;
913913
You can’t perform that action at this time.
0 commit comments