Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

Rodney Lab uvu-fastify-graphql Github banner



Rodney Lab logo



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.