nezuo / lapis

A DataStore abstraction library for Roblox
https://nezuo.github.io/lapis/
MIT License
59 stars 10 forks source link

Remove global state so tests don't affect each other #10

Closed nezuo closed 1 year ago

nezuo commented 1 year ago

I removed all global state from Lapis. I can recreate the Lapis API with Internal.new() now which means each test is using a different Lapis instance. This is to ensure that tests are not affecting each other. This should also make it easier to test auto saving.

I can also potentially run tests at the same time (would require a new testing library) which would allow me to get rid of SUPER_SPEED tests and save on a lot of over-engineering.