0.3.0 • Published 1 year ago
@apitree.cz/testing-library v0.3.0
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.3.0
1 year ago
0.2.7
1 year ago
0.2.8
1 year ago
0.2.6
1 year ago
0.2.5
1 year ago
0.2.4
1 year ago
0.2.1
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.0
2 years ago
0.2.0-next.7a585e4
2 years ago
0.1.1-next.ba0c85f
2 years ago
0.2.0-next.4ca0e1b
2 years ago
0.1.1-next.c8fd77a
2 years ago
0.2.0-next.e523288
2 years ago
0.1.1-next.d8398f6
2 years ago
0.2.0-next.1e6923b
2 years ago
0.2.0-next.3b6dd27
2 years ago
0.1.1-next.de70904
2 years ago
0.2.0-next.a246d10
2 years ago
0.2.0-next.2fde165
2 years ago
0.1.1-next.d62abc2
2 years ago
0.1.1-next.97c8608
2 years ago
0.1.1-next.a671370
2 years ago
0.1.1-next.adfbe62
2 years ago
0.1.1-next.0c823f9
2 years ago
0.1.0
2 years ago
0.1.0-next.41e8369
2 years ago
0.1.0-next.b32cc41
2 years ago
0.1.0-next.8925d8a
2 years ago
0.1.0-next.2bf4a89
2 years ago
0.1.0-next.ffe75af
2 years ago
0.1.0-next.05dd9cd
2 years ago
0.1.0-next.59c27a0
2 years ago
0.1.0-next.9a73b8e
2 years ago
0.1.0-next.313a279
2 years ago
0.1.0-next.662d527
2 years ago
0.1.0-next.c924c3c
2 years ago