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
I'm trying to test some logic that involves the creation of new templates. But when checking the created templates from one test to the other they are not being initialized and continue existing. For cleaning the store exists the clearStore I was wondering if there is a similar function for creating the data source.
I mean, let's say I have something like this:
describe('handle....',()=>{afterAll(()=>{clearStore();});test('it should work on way 1 ',()=>{
... somecodehereassert.dataSourceCount('NewTemplate',1);// want to check the template was created
... otherchecks});test('it should work on way 2 ',()=>{
... somecodehereassert.dataSourceCount('NewTemplate',1);// want to check the template was created but at this point, the template from
... otherchecks// the previous test will exist so there will be 2 templates instead of 1});});
I would like to be able to clean the data sources to test their existence properly, having a function like clearStore to clear the data sources clearDataSources will help.
Thanks
The text was updated successfully, but these errors were encountered:
Hi there:
I'm trying to test some logic that involves the creation of new templates. But when checking the created templates from one test to the other they are not being initialized and continue existing. For cleaning the store exists the
clearStore
I was wondering if there is a similar function for creating the data source.I mean, let's say I have something like this:
I would like to be able to clean the data sources to test their existence properly, having a function like
clearStore
to clear the data sourcesclearDataSources
will help.Thanks
The text was updated successfully, but these errors were encountered: