Skip to content

Using uvu for TypeScript API testing: we take a look at integrating a fast test runner into your backend continuous integration workflow.

License

Notifications You must be signed in to change notification settings

rodneylab/uvu-fastify-graphql

Repository files navigation

Rodney Lab uvu-fastify-graphql Github banner

Rodney Lab logo

uvu Fastify GraphQL

uvu-fastify-graphql

Open in Visual Studio Code

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:

pnpm run watch

then in a second tab

pnpm run dev

To test a GraphQL query, navigate to http://localhost:4000/graphql in your browser.

Run Tests

Stop the dev server then run

pnpm test

You can add additional tests under the tests folder.

About

Using uvu for TypeScript API testing: we take a look at integrating a fast test runner into your backend continuous integration workflow.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published