-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(es/tsc): Support for tsc multi-file unit tests #5316
Conversation
@@ -0,0 +1,12 @@ | |||
// @filename: file.tsx | |||
//! | |||
//! x Unexpected token `a`. Expected jsx identifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's better to correct error reporter.
Unexpected token `\u0061`. Expected jsx identifier
@@ -1,6 +1,6 @@ | |||
//@Filename: decls.ts | |||
// Ambient external module with export assignment | |||
// Ambient external import declaration referencing ambient external module using top level module name | |||
// Ambient external import declaration referencing ambient external module using top level module name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird spaces
swc playground
//! 9 | interface Thing { } | ||
//! 10 | } | ||
//! 11 | declare module 'react-router' { | ||
//! 12 | export = ReactRouter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 it's a bug.
We should not handle anything in declare module
swc playground
@FileName
directivesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
swc-bump:
- ''
Description:
BREAKING CHANGE:
Related issue (if exists):