Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodneylab/uvu-fastify-graphql
Using uvu for TypeScript API testing: we take a look at integrating a fast test runner into your backend continuous integration workflow.
https://github.com/rodneylab/uvu-fastify-graphql
fastify graphql mercurius supertest typescript uvu
Last synced: about 1 month ago
JSON representation
Using uvu for TypeScript API testing: we take a look at integrating a fast test runner into your backend continuous integration workflow.
- Host: GitHub
- URL: https://github.com/rodneylab/uvu-fastify-graphql
- Owner: rodneylab
- License: bsd-3-clause
- Created: 2021-09-29T17:36:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T06:53:58.000Z (7 months ago)
- Last Synced: 2024-05-23T07:49:04.030Z (7 months ago)
- Topics: fastify, graphql, mercurius, supertest, typescript, uvu
- Language: TypeScript
- Homepage:
- Size: 509 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
uvu Fastify GraphQL# uvu-fastify-graphql
[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/rodneylab/uvu-fastify-graphql)
Demo code for running uvu tests in a backend app. The code accompanies the article on using uvu for TypeScript API testing. If you have any questions, please drop a comment at the bottom of that page.
## Run Development Server
In one terminal tab run:
```shell
pnpm run watch
```then in a second tab
```shell
pnpm run dev
```To test a GraphQL query, navigate to [http://localhost:4000/graphql](http://localhost:4000/graphql) in your browser.
## Run Tests
Stop the dev server then run
```shell
pnpm test
```You can add additional tests under the `tests` folder.