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
There are issues with using TS to write unit tests. Here is an example of why unit tests should be written in JS:
I couldn't write a test-case to test the error handling if a user passes a string in place of an integer, because that test case invalidates the typings in TS. But the fact is that anyone can import the bitbox-sdk library into a JS project and they can accidentally pass a string in place of an integer.
So here is a case in which we can't even write a test because of TS, to catch a very real use case.
The text was updated successfully, but these errors were encountered:
There are issues with using TS to write unit tests. Here is an example of why unit tests should be written in JS:
I couldn't write a test-case to test the error handling if a user passes a string in place of an integer, because that test case invalidates the typings in TS. But the fact is that anyone can import the
bitbox-sdk
library into a JS project and they can accidentally pass a string in place of an integer.So here is a case in which we can't even write a test because of TS, to catch a very real use case.
The text was updated successfully, but these errors were encountered: