协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
nextjs-testing【开发与工程】Write Jest or Vitest unit tests with React Testing Library and Playwright E2E tests for Next.js projects. Use when testing components with RTL, mocking APIs with MSW, or creating Playwright user flow tests.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
jest@29 + babel-jest + jest-environment-jsdom).userEvent (async) for clicks, typing, form submissions.server and browser handlers are correctly configured.userEvent (async) to simulate user actions: await user.click(button).getByRole / findByRole to test accessibility. Use data-testid only as fallback.jest-environment-jsdom. For Vitest, configure vitest.config.ts with jsdom or happy-dom.