Skip to content

Commit

Permalink
fix(testing-library): remove duplicated exports
Browse files Browse the repository at this point in the history
  • Loading branch information
rozsival committed Nov 3, 2023
1 parent adfbe62 commit a671370
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 25 deletions.
1 change: 1 addition & 0 deletions packages/testing-library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pnpm add --save-dev @apitree.cz/testing-library @testing-library/react vitest
import { createRenderers } from '@apitree.cz/testing-library';
export * from '@apitree.cz/testing-library';
export * from '@testing-library/react';
export const { render, renderHook } = createRenderers();
```

Expand Down
3 changes: 2 additions & 1 deletion packages/testing-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"dependencies": {
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.1",
"jsdom": "^22.1.0"
},
"devDependencies": {
"@apitree.cz/vitest-config": "workspace:*",
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@vitest/coverage-istanbul": "^0.34.6",
Expand All @@ -46,6 +46,7 @@
"vitest": "^0.34.6"
},
"peerDependencies": {
"@testing-library/react": "^14.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vitest": "^0.34.6"
Expand Down
8 changes: 5 additions & 3 deletions packages/testing-library/src/testing-library.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import type { Queries } from '@testing-library/dom';
import type { RenderHookOptions, RenderOptions } from '@testing-library/react';
import type {
Queries,
RenderHookOptions,
RenderOptions,
} from '@testing-library/react';
import { render, renderHook } from '@testing-library/react';
import type { ReactElement } from 'react';

Expand Down Expand Up @@ -45,6 +48,5 @@ export const createRenderers = ({
return { render: customRender, renderHook: customRenderHook };
};

export * from '@testing-library/dom';
export * from '@testing-library/react';
export * from '@testing-library/user-event';
33 changes: 12 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a671370

Please sign in to comment.