You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
message: `You are attempting to preprocess a TypeScript file, but do not have TypeScript configured. Pass the 'typescript' option to enable TypeScript support.
Copy file name to clipboardExpand all lines: test/unit/index_spec.js
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -486,6 +486,32 @@ describe('browserify preprocessor', function () {
486
486
expect(err.message).to.include(`It looks like you passed the 'typescript' option and also specified a browserify transform for TypeScript. This may cause conflicts`)
487
487
})
488
488
})
489
+
490
+
it('throws error when processing .ts file and typescript option is not set',function(){
expect(err.message).to.include(`You are attempting to preprocess a TypeScript file, but do not have TypeScript configured. Pass the 'typescript' option to enable TypeScript support`)
500
+
expect(err.message).to.include('path/to/file.ts')
501
+
})
502
+
})
503
+
504
+
it('throws error when processing .tsx file and typescript option is not set',function(){
expect(err.message).to.include(`You are attempting to preprocess a TypeScript file, but do not have TypeScript configured. Pass the 'typescript' option to enable TypeScript support`)
0 commit comments