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
Our tests are in raw JS right now, which means they aren't really testing our types, and they're a bit harder to write due to not having TS autocomplete.
We should re-write them in TS, and also ensure that we are applying the obs-websocket-js typedefs to our mock-obs-websocket-js, to ensure that our mock is the right shape.
See https://github.com/Tespa/hearthstone-parser for an example of how I like to handle tests in TypeScript (although that repo uses Mocha, not Ava, so it's not a 1:1 example).
The text was updated successfully, but these errors were encountered:
Our tests are in raw JS right now, which means they aren't really testing our types, and they're a bit harder to write due to not having TS autocomplete.
We should re-write them in TS, and also ensure that we are applying the
obs-websocket-js
typedefs to ourmock-obs-websocket-js
, to ensure that our mock is the right shape.See https://github.com/Tespa/hearthstone-parser for an example of how I like to handle tests in TypeScript (although that repo uses Mocha, not Ava, so it's not a 1:1 example).
The text was updated successfully, but these errors were encountered: