Open martinmckenna opened 4 months ago
Hi
I noticed that when using
afterEach(() => { cleanStores() })
in my tests, all values wrapped in computed() are not reset
computed()
Example code:
export const $getThings = createFetcherStore( ['project', 'memberships', $projectId], { fetcher: () => getThings().then((response) => response.data), }, ); export const $getProjectMembershipsWithSSHKeys = computed( [$getThings], (data) => ({ ...data, data: data.data?.memberships.filter(someFilterFn) }), );
You need to pass stores to the function cleanStores(store1, store2).
cleanStores(store1, store2)
Can you show expected and actual examples?
Hi
I noticed that when using
in my tests, all values wrapped in
computed()
are not resetExample code: