-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add setupPretender
test helper
#437
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! 👍
Something is "up" with Travis; test run was not reported to the PR but it did actually run https://travis-ci.org/github/mike-north/ember-api-actions/builds/673039505 |
Travis run is green, I'm going to merge this (and rebase #428 which should use the new helper) |
Actually, I can't merge 😅 @Turbo87 could you? |
I would be more comfortable if we had a working CI setup here first 😅 |
The TypeScript types in the version of Pretender that the current version of `ember-cli-pretender` provides don't match the actual API of pretender _or_ the way that we were using it. Upgrade `ember-cli-pretender` bumped Pretender itself to the next major version, which ships with more accurate types.
* Add `setupPretender` helper that provides Pretender to the test context (with correct types!) * Update tests so that there are no TypeScript errors in Pretender handlers
0d39b20
to
8df6a78
Compare
Rebased to trigger CI... and now Travis is reporting again??? 🤷♂️ |
@Turbo87 this looks ready-to-go! |
setupPretender
helper (with type augmentation!)