0.2.6 • Published 17 days ago
@apitree.cz/testing-library v0.2.6
Testing Library
React Testing Library setup for Vitest in ApiTree projects.
Installation
pnpm add --save-dev @apitree.cz/testing-library @testing-library/react vitest
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.ts
import { createRenderers } from '@apitree.cz/testing-library'; export * from '@apitree.cz/testing-library'; export * from '@testing-library/react'; export const { render, renderHook } = createRenderers();
See
CreateRenderersProps
forcreateRenderers
props reference.Write your tests in
tests
directory and run them withvitest --run
command.Use
tests/testing-library.ts
for importing Testing Library utilities.
0.2.6
17 days ago
0.2.5
18 days ago
0.2.4
18 days ago
0.2.1
4 months ago
0.2.3
4 months ago
0.2.2
4 months ago
0.2.0
5 months ago
0.2.0-next.7a585e4
5 months ago
0.1.1-next.ba0c85f
6 months ago
0.2.0-next.4ca0e1b
6 months ago
0.1.1-next.c8fd77a
6 months ago
0.2.0-next.e523288
6 months ago
0.1.1-next.d8398f6
6 months ago
0.2.0-next.1e6923b
6 months ago
0.2.0-next.3b6dd27
6 months ago
0.1.1-next.de70904
6 months ago
0.2.0-next.a246d10
6 months ago
0.2.0-next.2fde165
6 months ago
0.1.1-next.d62abc2
6 months ago
0.1.1-next.97c8608
6 months ago
0.1.1-next.a671370
6 months ago
0.1.1-next.adfbe62
6 months ago
0.1.1-next.0c823f9
6 months ago
0.1.0
6 months ago
0.1.0-next.41e8369
6 months ago
0.1.0-next.b32cc41
6 months ago
0.1.0-next.8925d8a
6 months ago
0.1.0-next.2bf4a89
6 months ago
0.1.0-next.ffe75af
6 months ago
0.1.0-next.05dd9cd
6 months ago
0.1.0-next.59c27a0
6 months ago
0.1.0-next.9a73b8e
6 months ago
0.1.0-next.313a279
6 months ago
0.1.0-next.662d527
6 months ago
0.1.0-next.c924c3c
6 months ago