From ab5a98b1877cd6ccc3373c470b3bd8b9c9f4c761 Mon Sep 17 00:00:00 2001 From: Daishi Kato Date: Fri, 31 Oct 2025 13:17:00 +0900 Subject: [PATCH] test: fix for node 24 (#3278) --- tests/devtools.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }, ) })