akd-io / create-next-stack

Create Next Stack is a website and CLI tool used to easily set up the boilerplate of new Next.js apps.
https://www.create-next-stack.com
MIT License
561 stars 27 forks source link

Add support for React Testing Library #221

Open akd-io opened 1 year ago

akd-io commented 1 year ago

Add support for React Testing Library

Remember to look at this code from the github actions plugin:

scripts: [
  {
    // TODO: When testing libraries are supported, make them add the test script. Somehow make this plugin only add `test` script if no other testing plugin has done so. Currently added so the github-actions workflow won't fail when calling the `test` npm script.
    name: "test",
    description: "Runs tests",
    command: "echo No tests found.",
  },
],
akd-io commented 1 year ago

Check out https://nextjs.org/docs/pages/building-your-application/optimizing/testing as Lee mentioned