Harley Alexander

Results 51 comments of Harley Alexander

That's actually a great idea. TIL

Thanks for the insight @bellini666! I will loop back to this soon 😄

Hey @filipkis, do you have an example of the channel.bind happening in your code? There's if it's using `pusher-js` and you're mocking `pusher-js` with `PusherMock` then it should work as...

Just flagging as well - pusher-js 7.0.0 changes the way custom authorisers work: Changelog 7.0.0 (2020-07-30) [UPDATED] Type signatures for authorizer callback. Previously the authorizer callback had 2 arguments, the...

@gs-scooter the updates I have been pushing (see #18 and #19) mock the pusher server more closely, allowing access to multiple clients and the pusher “instance” where you can access...

Hey @gs-scooter you can now mock individual PusherMock instances that refer to the same channels. See: https://github.com/nikolalsvk/pusher-js-mock/blob/a4d76a114f079b54e036727059f68fe7a60f33d6/src/__tests__/pusher-js-mock.spec.ts#L142-L175

Correct me if I am wrong @eoinsha, however, if using jest you'd do something like this; ```javascript import mockAuth from 'mock-amplify-auth' jest.mock('@aws-amplify/auth', mockAuth); test('should', () => { // ... })...

Hey, so two years later transitions still don't work on data-driven properties?

I am having the same issue when trying to change an input value: `fireEvent.change(getByLabelText(/email/i), {target: {value: fakeUsername}});` Obviously, wrapping this in `act(() => {})` doesn't do anything to mitigate the...

[Reproducible demo](https://github.com/mayteio/storybook-msw-urql) - this is just CRA with storybook, urql and msw/storybook-addon-msw. 1. clone 2. npm install 3. npm run storybook 4. navigate to the "header -> logged in" story...