-
Notifications
You must be signed in to change notification settings - Fork 3
chore: update native esm #524
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
Conversation
| { | ||
| headers: { | ||
| 'Accept': 'application/json', | ||
| 'Content-Type': 'application/json', |
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.
This is a response header, not a request header--which is what this is matching
|
|
||
| it('should handle files', async () => { | ||
| mockedFetch.get( | ||
| fetchMock.post( |
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.
This test was changed to a POST as GETs shouldn't have a body
ts-jest transpilation addes newline/spacing
| const value = new Bar(); | ||
|
|
||
| expect(() => asType(value, Foo)).toThrow( | ||
| '"Bar" is not an instance of class Foo {}', |
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.
The braces get re-formatted (newline) when run in ts-jest it looks like, so just removing that part from the asssertion.
Updates for native ESM support
Depends on: