Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
doug
@pfeffunit
how are you all unit testing your js/ts apps, especially with regards to the database? hard coded records, aka fixtures? just mocking it all out in code? or is there something better? my kingdom for rails style factorybot!
1 reply
0 recast
1 reaction
Magg / Pine Cone
@magg
I do some direct hardcoding, some mocking with frameworks, and I've even experimented with short lived test containers with pg and a prepared database. In Knex you can also direct it to a SQLite database when it's in the test env, but then you are limited to what SQLite can do and that might not be good if you use more advanced db queries in your app
1 reply
0 recast
0 reaction