diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-10 12:16:59 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:15:27 +0100 |
| commit | d7bcd93efcd4f1ae20678d0efa6777cfadc09a4e (patch) | |
| tree | 714edfa84a8f3c53262c407ac9a2a79c9d2479b8 /tests/jest/__mocks__ | |
| parent | f699802b837d7d9fcf150ff2bf00cd3c5475c87a (diff) | |
refactor(components): replace Overview with ProjectOverview component
* `cover` prop is now expecting a ReactElement (NextImage)
* `meta` prop is now limited to a specific set of meta items
* add a `name` prop to add an accessible name to the figure element
Diffstat (limited to 'tests/jest/__mocks__')
| -rw-r--r-- | tests/jest/__mocks__/svgr.mock.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/jest/__mocks__/svgr.mock.tsx b/tests/jest/__mocks__/svgr.mock.tsx new file mode 100644 index 0000000..28fa414 --- /dev/null +++ b/tests/jest/__mocks__/svgr.mock.tsx @@ -0,0 +1,9 @@ +import React, { type SVGProps } from 'react'; + +const SvgrMock = React.forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>( + (props, ref) => <svg ref={ref} {...props} /> +); +SvgrMock.displayName = 'SvgrMock'; + +export const ReactComponent = SvgrMock; +export default SvgrMock; |
