Hey, does https://github.com/supertokens/backend-sdk-testing is supposed to be the first brick for a...
d
Hey, does https://github.com/supertokens/backend-sdk-testing is supposed to be the first brick for a way to unit test a backend without having to spin up a core ?
r
hey @DollarNavalex not really. it's supposed to be a way to have a single set of tests that we can reuse aceoss all our backend sdks so we save time on rewriting tests in three different places.
but, we do plan on adding a hosted core which can be used for testing purposes. So that will come soon
d
Hey, okay I see. I'm currently making a big mock of the sdk and some helpers to inject correct/incorrect session objects in my request etc. Not tested yet, but if I manage to create something stable, I'll might push it on my github 😉
But it may only fit for my current needs and not really a global and reusable approach
3 Views