@apitree.cz/testing-library 0.1.1-next.adfbe62 → 0.1.1-next.c8fd77a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/setup.d.ts +1 -1
- package/dist/setup.js +0 -1
- package/dist/setup.js.map +1 -1
- package/dist/testing-library.d.ts +1 -2
- package/dist/testing-library.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
pnpm add --save-dev @apitree.cz/testing-library @testing-library/
|
|
16
|
+
pnpm add --save-dev @apitree.cz/testing-library @testing-library/jest-dom vitest
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
@@ -24,6 +24,7 @@ pnpm add --save-dev @apitree.cz/testing-library @testing-library/react vitest
|
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
26
|
import '@apitree.cz/testing-library/setup';
|
|
27
|
+
import '@testing-library/jest-dom/vitest';
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
3. Create test renderers in `tests/testing-library.ts`
|
package/dist/setup.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/setup.js
CHANGED
package/dist/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Queries } from '@testing-library/
|
|
2
|
-
import type { RenderHookOptions, RenderOptions } from '@testing-library/react';
|
|
1
|
+
import type { Queries, RenderHookOptions, RenderOptions } from '@testing-library/react';
|
|
3
2
|
import type { ReactElement } from 'react';
|
|
4
3
|
export interface CreateRenderersProps {
|
|
5
4
|
defaultWrapper?: RenderOptions['wrapper'] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing-library.js","sourceRoot":"","sources":["../src/testing-library.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"testing-library.js","sourceRoot":"","sources":["../src/testing-library.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAU5D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,cAAc,GAAG,SAAS,cAAc,CAAC,EAAE,QAAQ,EAAE;IACnD,OAAO,QAAQ,CAAC;AAClB,CAAC,MACuB,EAAE,EAAE,EAAE;IAC9B,MAAM,YAAY,GAAG,CAKnB,EAAgB,EAChB,OAAkD,EAClD,EAAE;QACF,MAAM,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;QACnD,OAAO,MAAM,CAA4B,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC,CAAC;IACF,MAAM,gBAAgB,GAAG,CAOvB,MAAuC,EACvC,OAA6D,EAC7D,EAAE;QACF,MAAM,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;QACnD,OAAO,UAAU,CAA2C,MAAM,EAAE;YAClE,GAAG,OAAO;YACV,OAAO;SACR,CAAC,CAAC;IACL,CAAC,CAAC;IACF,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC;AAChE,CAAC,CAAC;AAEF,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apitree.cz/testing-library",
|
|
3
|
-
"version": "0.1.1-next.
|
|
3
|
+
"version": "0.1.1-next.c8fd77a",
|
|
4
4
|
"description": "React Testing Library setup for Vitest in ApiTree projects.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,21 +18,22 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@testing-library/dom": "^9.3.3",
|
|
21
|
-
"@testing-library/jest-dom": "^6.1.4",
|
|
22
21
|
"@testing-library/react": "^14.0.0",
|
|
23
22
|
"@testing-library/user-event": "^14.5.1",
|
|
24
23
|
"jsdom": "^22.1.0"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
26
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
27
27
|
"@types/react": "^18.2.33",
|
|
28
28
|
"@types/react-dom": "^18.2.14",
|
|
29
29
|
"@vitest/coverage-istanbul": "^0.34.6",
|
|
30
30
|
"react": "^18.2.0",
|
|
31
31
|
"react-dom": "^18.2.0",
|
|
32
32
|
"vitest": "^0.34.6",
|
|
33
|
-
"@apitree.cz/vitest-config": "0.2.0-next.
|
|
33
|
+
"@apitree.cz/vitest-config": "0.2.0-next.c8fd77a"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
36
37
|
"react": "^18.2.0",
|
|
37
38
|
"react-dom": "^18.2.0",
|
|
38
39
|
"vitest": "^0.34.6"
|