Community Forum
Mocking the 'root' object?
over 1 year ago by Albert
Hi,
In our unit-testing-code.js, we're trying to test some code which accesses a datastore, as in the example:
await root.dataStores.store('data_store_key').find();
Unfortunately, the root
object is always undefined.
Am I failing to setup the test correctly?
Thanks