@apitree.cz/testing-library v0.7.3
Testing Library
React Testing Library setup for Vitest in ApiTree projects.
Installation
pnpm add --save-dev @apitree.cz/testing-library @testing-library/react vitestIn a monorepo, install and use the package in each workspace.
Usage
Setup Vitest for React with
@apitree.cz/vitest-config.Create
tests/setup.ts:import '@apitree.cz/testing-library/setup';Create test renderers in
tests/testing-library.tsimport { createRenderers } from '@apitree.cz/testing-library'; export * from '@testing-library/react'; export const { render, renderHook } = createRenderers();See
CreateRenderersPropsforcreateRenderersprops reference.Write your tests in
testsdirectory and run them withvitest --runcommand.Use
tests/testing-library.tsfor importing Testing Library utilities.
5 months ago
5 months ago
10 months ago
5 months ago
10 months ago
6 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
7 months ago
9 months ago
9 months ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago