Add vitest, make some tests actually kind of work!

This commit is contained in:
Alex Gleason
2023-09-15 16:24:01 -05:00
parent 0a30a31e61
commit da2f942563
4 changed files with 295 additions and 8 deletions

View File

@@ -7,7 +7,9 @@ import { __clear as clearApiMocks } from '../api/__mocks__';
// API mocking
jest.mock('soapbox/api');
afterEach(() => clearApiMocks());
afterEach(() => {
clearApiMocks();
});
// Query mocking
jest.mock('soapbox/queries/client');