next.js setup for testing (typescript)
-
general testing and run with jest
-
components testing with
react-testing-library
-
api testing with
node-mocks-http
to bootstrap a new app, use this repo as create-next-app example:
npx create-next-app my-app --example https://github.com/brivad/nextjs-ts-testing
🏂