test: fix for node 24 (#3278)

This commit is contained in:
Daishi Kato 2025-10-31 13:17:00 +09:00 committed by GitHub
parent 6422fa8898
commit ab5a98b187
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) },
)
})