Results 36 comments of Atrue

Can you try the latest version of the vertical collection? There was a similar issue that was fixed after the 3.1.0 release. https://github.com/html-next/vertical-collection/pull/389

See https://github.com/thoov/mock-socket#stubbing-the-global `window.WebSocket` is stubbed out once `new Server` is called

This library is intended for testing the client, so the WebSocket connecting to the mocked Server instead of the real one. Server-side tests require another types of tests according to...

@bytemain Can you share an example of the issue? According to the spec the client WebSocket can accept/send only these types: `string`, `blob` and `ArrayBuffer`, (see https://websockets.spec.whatwg.org/#feedback-from-the-protocol p3 and p4)....

@taras What do you think about adding this file to the library https://github.com/taras/effection-react-autocomplete/blob/main/src/hooks/useTask.ts? I suppose it's a common case for React to run a task in the `useEffect`. Maybe it's...

@taras I’ve made a repo comparing effection with async approach in some react examples https://github.com/Atrue/react-concurrency-examples/tree/main Currently, I see 3 additional hooks that may be useful for react developers: `useTaskEffect` -...

Once you create a `Server` instance the `window.WebSocket` object has been mocked by default. Usually the best place for it is `beforeEach` hook. If it's not working for you it's...

You need to try the examples in the documentation and make sure they works, if so you can try mocking the WebSocket the same way, you can even try it...

Looks like the Playwright’s `addInitScript` only accepts serializable functions or objects https://playwright.dev/docs/api/class-browsercontext#browser-context-add-init-script-option-arg So it means playwrights can’t share the sync context between the test script and the page. It may...

@steveluscher Interesting, I’m trying to figure out if the `0` code can be even used as status code on the server. According to this https://datatracker.ietf.org/doc/html/rfc6455#section-7.4.2 `Status codes in the range...