Skip to content

Commit f042855

Browse files
committed
test: fix for node 24
1 parent 6422fa8 commit f042855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/devtools.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ describe('When state changes with automatic setter inferring...', () => {
218218
api.getState().setCount(10)
219219
const [connection] = getNamedConnectionApis(options.name)
220220
expect(connection.send).toHaveBeenLastCalledWith(
221-
{ type: 'Object.setCount' },
221+
{ type: expect.stringMatching(/^(Object\.setCount|anonymous)$/) },
222222
{ count: 10, setCount: expect.any(Function) },
223223
)
224224
})

0 commit comments

Comments
 (0)