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
WebStorm 2017.3 EAP
Build #WS-173.3622.29, built on November 9, 2017
WebStorm EAP User
Expiration date: December 9, 2017
JRE: 1.8.0_152-release-1024-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
OS name and version
Mac OS X 10.13.1
The text was updated successfully, but these errors were encountered:
I don't think the error is Wallaby specific, this is the way TypeScript compilation works (and the way AVA checks error types). You should get the same error when running AVA without wallaby.
I was using ava-ts to run the tests when not using wallaby, and that variant worked. The actual problem was that I was checking against XMLHttpRequest.NetworkError and throwing a NetworkError (the XMLHttpRequest class has a static NetworkError = NetworkError property). Typescript knows they're the same, but after going through transpilation they ended up different classes. Actually throwing an XMLHttpRequest.NetworkError works.
Thanks for the help towards resolving my issue, the error message was very confusing (though I'm guessing that's ava rather than wallaby).
Issue description or question
Wallaby reports error when error is expected to actually pass the test using ava's
t.throws
, i.e.:results in error (and test not passing):
Wallaby.js configuration file
Code editor or IDE name and version
WebStorm 2017.3 EAP
Build #WS-173.3622.29, built on November 9, 2017
WebStorm EAP User
Expiration date: December 9, 2017
JRE: 1.8.0_152-release-1024-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
OS name and version
Mac OS X 10.13.1
The text was updated successfully, but these errors were encountered: