Skip to content

Commit

Permalink
test(suite): init db before test
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Jun 22, 2023
1 parent 3ce771a commit 3e6f9d3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { combineReducers, createReducer } from '@reduxjs/toolkit';
import { configureMockStore, testMocks } from '@suite-common/test-utils';
import { promiseAllSequence } from '@trezor/utils';

import { db } from 'src/storage';
import { accountsReducer } from 'src/reducers/wallet';
import { coinjoinReducer } from 'src/reducers/wallet/coinjoinReducer';
import selectedAccountReducer from 'src/reducers/wallet/selectedAccountReducer';
Expand Down Expand Up @@ -87,6 +88,9 @@ describe('coinjoinClientActions', () => {
afterEach(() => {
jest.clearAllMocks();
});
beforeAll(async () => {
await db.getDB();
});

fixtures.onCoinjoinRoundChanged.forEach(f => {
it(`onCoinjoinRoundChanged: ${f.description}`, async () => {
Expand Down

0 comments on commit 3e6f9d3

Please sign in to comment.