testing
bởi contentstack
Trạng thái công cụ kiểm thử cho repo này và các ghi chú thực tế nếu bạn giới thiệu các bài kiểm thử tự động.
npx skills add https://github.com/contentstack/kickstart-next-ssg --skill testingTesting – kickstart-next-ssg
When to use
- Checking whether CI or npm runs tests (it does not, yet)
- Planning unit, component, or E2E tests for this kickstart
Instructions
Current state
- There is no test script in package.json.
- There are no
*.test.*,*.spec.*, or__tests__directories in the repository. - GitHub Actions workflows do not run
npm test; PR checks are security/policy focused (see AGENTS.md).
If you add tests
- Pick a runner and add it to
devDependenciesandpackage.jsonscripts—do not document a framework as “already installed” until it appears inpackage.json. - Common options for this stack: Vitest or Jest with React Testing Library for components; Playwright for end-to-end flows against
npm run dev. - Co-locate or use a
tests/(or__tests__/) directory and keep fixtures free of real API keys; use env files that are gitignored.