Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Demo app #62

Open
villander opened this issue Oct 8, 2017 · 6 comments
Open

Demo app #62

villander opened this issue Oct 8, 2017 · 6 comments

Comments

@villander
Copy link
Contributor

We need of demo/dummy app as ember-power-select, so we will have a case, besides making better the experience of each user that uses this addon with docs, cookbook and others

@bgentry
Copy link
Member

bgentry commented Oct 8, 2017

Yes, this would be really great. I haven't found the time to spend on it so far but it's also an area where anybody would be able to contribute, especially in terms of getting the app skeleton built & designed.

@dfreeman
Copy link
Contributor

dfreeman commented Oct 9, 2017

It's not quite ready for primetime yet, but https://ember-learn.github.io/ember-cli-addon-docs may be worth being aware of for this

@villander
Copy link
Contributor Author

A demo/dummy app with authentication using Github API. Would be a good case, especially if we have unit tests of integration and acceptance.

@bgentry
Copy link
Member

bgentry commented Feb 18, 2018

Agreed!

Good test examples including pretender and schema mocking would be helpful. I also recently set up my full schema with VS Code and a .gqlconfig, that was a pretty magical improvement.

@villander
Copy link
Contributor Author

Acceptance tests with pretender and schema or mirage is somewhat verbose, you need to track a lot. It is best to use acceptance tests like E2E. We do not have an ergonomic tool to mock GraphQL on the front, like the mirage.

@bgentry
Copy link
Member

bgentry commented Mar 3, 2018

I opened #106 to track creating our own documentation site, which could potentially be the same as the demo app.

@villander re: mocking, you are familiar with the built-in Apollo Client mocking functions, right?

https://dev-blog.apollodata.com/mocking-your-server-with-just-one-line-of-code-692feda6e9cd
https://www.apollographql.com/docs/graphql-tools/mocking.html
https://medium.com/@carlos_42328/mocking-api-responses-with-react-apollo-11eb4610debe

It's indeed a bit verbose for tests where you need to really customize the response. Would love to see a better tool for that.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants