-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pokmon API is not available anymore: https://graphql-pokemon.now.sh #28
Comments
Ha! Dang it. Well, I know what I'm working on now 😅 I've been wanting to replace this with MSW anyway. Thanks for letting me know. |
Well, apparently it works randomly... I think replacing it with something else in the long run is a good idea. Thanks again for this material Kent! |
Hey I can submit a PR with MSW implementation if you haven't done yet. |
I wouldn't implement this as part of |
test('displays the pokemon', async () => {
window.fetch.mockRestore()
.......
jest.spyOn(window, 'fetch')
}); but is not really good or we can not use the import '@testing-library/jest-dom/extend-expect'
import '@kentcdodds/react-workshop-app/dist/jest-expect-message'
import {server} from './test/server'
beforeAll(() => {
jest.spyOn(console, 'info')
console.info.mockImplementation(() => {})
server.listen()
})
afterAll(() => {
console.info.mockRestore()
server.close()
})
beforeEach(() => console.info.mockClear())
afterEach(() => server.resetHandlers()) |
Ah, good point. Hmmmm... I set that up before I discovered MSW. I think the right approach here is to remove that from the react-workshop-app and add it to the individual apps and then later set up MSW instead. |
It should be good. I'll make a PR there |
Thanks for the help in the workshop repo @marcosvega91. I'm working on fixing this here now :) |
Goood 🚀 |
Sorry I didn't realize you wanted collaboration for this issue @kentcdodds |
No worries @gugol2 :) Glad that you reported the issue! |
Actually... That reminds me! @all-contributors please add @gugol2 for bugs |
I've put up a pull request to add @gugol2! 🎉 |
Hi Ken,
Very nice material, thanks.
Just to let you know about this API that you are using for this repo is no longer working:
"ZEIT Now 1.0 is being shut down. As part of this, all ZEIT Now 1.0 Deployments will become inaccessible."
Nothing to do with your code, but just in case I let you know.
The owner of the repo has been notified already: lucasbento/graphql-pokemon#13
Cheers!
The text was updated successfully, but these errors were encountered: