Skip to main content

Testing

Back to Documentation Intro Contents

info

See Verify for more information on the testing phase of the SDLC.

Static Tests

ESLint TypeScript
  • Static tests are done automatically in VS Code e.g. typos and type errors
  • Ensure static testing libraries are set up such as ESLint or TypeScript

Unit Tests

Jest Vitest React Testing Library
  • To create unit tests, use AI to write the tests - see the "Testing Prompts" section of the Obsidian note on AI Prompts - and then review the tests and make improvements
  • Use a testing library such as Jest or React Testing Library
  • If using Vite, use Vitest for unit tests

Integration Tests

React Testing Library Cypress
  • To create integration tests, use AI to write the tests - see the "Testing Prompts" section of the Obsidian note on AI Prompts - and then review the tests and make improvements
  • Use a testing library such as React Testing Library or Cypress

E2E Tests

Playwright Cypress

Performance Testing

  • Before releasing the project, test the performance of the project using these tools: