diff --git a/tests/devtools.test.tsx b/tests/devtools.test.tsx index 6d653efb..1c583e10 100644 --- a/tests/devtools.test.tsx +++ b/tests/devtools.test.tsx @@ -218,7 +218,7 @@ describe('When state changes with automatic setter inferring...', () => { api.getState().setCount(10) const [connection] = getNamedConnectionApis(options.name) expect(connection.send).toHaveBeenLastCalledWith( - { type: 'Object.setCount' }, + { type: expect.stringMatching(/^(Object\.setCount|anonymous)$/) }, { count: 10, setCount: expect.any(Function) }, ) })