|
4 | 4 |
|
5 | 5 | Build query arguments for filter and orderBy MongoDB queries.
|
6 | 6 |
|
7 |
| -Added 61 test cases, which pass against my local server. |
8 |
| -TODO: There can be more test cases, with complex queries and a critical review of the tests. |
9 |
| -TODO: test app to run those test cases against. Used so far my local server. |
10 |
| -TODO: When server is up and running: rename src/__tests__/end-to-end/index-test-cases.js back to index-test-cases-test.js, in order to have it in the test run with Mocha. |
| 7 | +Added 60 test cases, which pass against my local create-graphql-server instance. |
| 8 | +These tests are referenced in create-graphql-server test runs later. |
| 9 | + |
| 10 | +TODO: |
| 11 | +* There can be more test cases, with complex queries and a critical review of the tests. Add them to (src/index-test-cases.js). |
| 12 | +* Implement a test app within the package, to run these test cases against. Used so far my local server to test with. |
11 | 13 |
|
12 | 14 | ## Purpose
|
13 | 15 | You build a GraphQL server with the npm package "create-graphql-server", which serves as a backend to web applications. This "create-graphql-server" generates schemas, resolvers and models for an express-js server.
|
@@ -697,16 +699,20 @@ If you are having troubles somewhere, have a look into the running example at:
|
697 | 699 | ## Documentation
|
698 | 700 | [API Documentation](https://tobkle.github.io/create-graphql-server-query-arguments/)
|
699 | 701 |
|
700 |
| -
|
701 | 702 | ## Tests
|
702 | 703 | ```bash
|
703 | 704 | yarn test
|
704 | 705 | ```
|
705 | 706 |
|
| 707 | +Or in create-graphql-server package itself: |
| 708 | +```bash |
| 709 | +yarn end-to-end-arguments-test |
| 710 | +``` |
| 711 | +
|
706 | 712 | ## Contributing
|
707 | 713 | In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
|
708 | 714 |
|
709 | 715 | # Example Queries
|
710 | 716 |
|
711 | 717 | Have a look in the test directory to see more:
|
712 |
| -[index-test-cases](https://github.com/tobkle/create-graphql-server-query-arguments/tree/master/src/__tests__/end-to-end/) |
| 718 | +[index-test-cases](https://github.com/tobkle/create-graphql-server-query-arguments/tree/master/src/index-test-cases.js) |
0 commit comments