Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: move reset state to setup function
  • Loading branch information
ccharly committed Nov 28, 2025
commit 1b69b3ae325d1baf1ce17156b174b126fc1841d2
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ const setup = ({
),
);

// We reset this state, since it's a static field, so each tests would start
// with a fresh state.
MockSnapAccountProvider.resetEnsureSnapPlatformIsReady();

const serviceMessenger = getMultichainAccountServiceMessenger(messenger);
const config = {
...(maxConcurrency !== undefined && { maxConcurrency }),
Expand All @@ -211,10 +215,6 @@ const setup = ({
};

describe('SnapAccountProvider', () => {
beforeEach(() => {
MockSnapAccountProvider.resetEnsureSnapPlatformIsReady();
});

describe('constructor default parameters', () => {
const mockMessenger = {
call: jest.fn().mockResolvedValue({}),
Expand Down
Loading