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.
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.
Stop the dev server then run
pnpm test
You can add additional tests under the tests
folder.