Skip to content

🎥 Make videos programmatically with React

feat: add test suite for path

Alex Fernandez1015f7adf6e6
diff --git a/packages/docs/components/TableOfContents/shapes.tsx b/packages/docs/components/TableOfContents/shapes.tsx
index 6bf6a6d6ff..b0a14e0058 100644
--- a/packages/docs/components/TableOfContents/shapes.tsx
+++ b/packages/docs/components/TableOfContents/shapes.tsx
@@ -20,15 +20,15 @@ export const TableOfContents: React.FC = () => {
</TOCItem>
<TOCItem link="/docs/shapes/circle">
<strong>{`<Circle/>`}</strong>
- <div>Circle</div>
+ <div>Generates Circle SVG</div>
</TOCItem>
<TOCItem link="/docs/shapes/square">
<strong>{`<Square/>`}</strong>
- <div>Square</div>
+ <div>Generates Square SVG</div>
</TOCItem>
<TOCItem link="/docs/shapes/triangle">
<strong>{`<Triangle/>`}</strong>
- <div>Triangle</div>
+ <div>Generates Triangle SVG</div>
</TOCItem>
</Grid>
</div>
diff --git a/packages/shapes/package.json b/packages/shapes/package.json
index a562176a2f..f21f06e37d 100644
--- a/packages/shapes/package.json
+++ b/packages/shapes/package.json
@@ -37,6 +37,8 @@
"access": "public"
},
"dependencies": {
+ "@testing-library/react": "^13.4.0",
+ "@vitejs/plugin-react": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
diff --git a/packages/shapes/src/circle.tsx b/packages/shapes/src/circle.tsx
index d621e5765e..4acb92e742 100644
--- a/packages/shapes/src/circle.tsx
+++ b/packages/shapes/src/circle.tsx
@@ -25,6 +25,7 @@ export const Circle: React.FC<CircleProps> = ({
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
style={style}
+ data-shape-type="circle"
>
<path
d={makeCircle({
diff --git a/packages/shapes/src/square.tsx b/packages/shapes/src/square.tsx
index ba85d89dc0..a9c3b606e8 100644
--- a/packages/shapes/src/square.tsx
+++ b/packages/shapes/src/square.tsx
@@ -23,6 +23,7 @@ export const Square: React.FC<SquareProps> = ({
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
style={style}
+ data-shape-type="square"
>
<path
d={makeSquare({
diff --git a/packages/shapes/src/test/circle.test.tsx b/packages/shapes/src/test/circle.test.tsx
new file mode 100644
index 0000000000..11eea30f43
--- /dev/null
+++ b/packages/shapes/src/test/circle.test.tsx
@@ -0,0 +1,22 @@
+import {expect, test} from 'vitest';
+import {Circle} from '../circle';
+import {render} from './test-utils';
+
+test('Should be able to make a circle svg', () => {
+ const {container} = render(
+ <Circle
+ width={100}
+ height={100}
+ fill="green"
+ stroke="red"
+ strokeWidth={1}
+ />
+ );
+ // assert shape type
+ expect(
+ container.querySelector('svg')?.getAttribute('data-shape-type')
+ ).toEqual('circle');
+ expect(container.querySelector('path')?.getAttribute('d')).toEqual(
+ 'M 50 50 m -50, 0 a 50,50 0 1,0 100,0 50,50 0 1,0 -100,0'
+ );
+});
diff --git a/packages/shapes/src/test/square.test.tsx b/packages/shapes/src/test/square.test.tsx
new file mode 100644
index 0000000000..09d2b172d4
--- /dev/null
+++ b/packages/shapes/src/test/square.test.tsx
@@ -0,0 +1,18 @@
+import {expect, test} from 'vitest';
+import {Square} from '../square';
+import {render} from './test-utils';
+
+test('Should be able to make a square svg', () => {
+ const {container} = render(
+ <Square width={200} height={200} size={100} fill="red" />
+ );
+ // assert shape type
+ expect(
+ container.querySelector('svg')?.getAttribute('data-shape-type')
+ ).toEqual('square');
+
+ // assert path
+ expect(container.querySelector('path')?.getAttribute('d')).toEqual(
+ 'M 50, 50 l 100, 0 l 0, 100 l -100, 0 Z'
+ );
+});
diff --git a/packages/shapes/src/test/test-utils.tsx b/packages/shapes/src/test/test-utils.tsx
new file mode 100644
index 0000000000..db8c3042a8
--- /dev/null
+++ b/packages/shapes/src/test/test-utils.tsx
@@ -0,0 +1,20 @@
+import type {queries, RenderOptions} from '@testing-library/react';
+import {render, screen} from '@testing-library/react';
+import type {FC, ReactElement} from 'react';
+
+const AllTheProviders: FC<{
+ children: React.ReactNode;
+}> = ({children}) => {
+ // overwriting console.error console does not gets poluted with all the errors
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
+ window.console.error = () => {};
+ return <div>{children}</div>;
+};
+
+const customRender = (
+ ui: ReactElement,
+ options?: Omit<RenderOptions, 'queries'>
+) => render<typeof queries>(ui, {wrapper: AllTheProviders, ...options});
+
+export * from '@testing-library/react';
+export {customRender as render, screen};
diff --git a/packages/shapes/src/test/triangle.test.tsx b/packages/shapes/src/test/triangle.test.tsx
new file mode 100644
index 0000000000..35529466f4
--- /dev/null
+++ b/packages/shapes/src/test/triangle.test.tsx
@@ -0,0 +1,17 @@
+import {expect, test} from 'vitest';
+import {Triangle} from '../triangle';
+import {render} from './test-utils';
+
+test('Should be able to make a triangle svg', () => {
+ const {container} = render(
+ <Triangle width={100} height={100} fill="red" direction="left" />
+ );
+ expect(
+ container.querySelector('svg')?.getAttribute('data-shape-type')
+ ).toEqual('triangle');
+
+ // assert path
+ expect(container.querySelector('path')?.getAttribute('d')).toEqual(
+ 'M 100,0 L 100,100 L 0,50 z'
+ );
+});
diff --git a/packages/shapes/src/triangle.tsx b/packages/shapes/src/triangle.tsx
index 0e69d07798..f0db1ef3cb 100644
--- a/packages/shapes/src/triangle.tsx
+++ b/packages/shapes/src/triangle.tsx
@@ -23,6 +23,7 @@ export const Triangle: React.FC<TriangleProps> = ({
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
style={style}
+ data-shape-type="triangle"
>
<path
d={makeTriangle({
diff --git a/packages/shapes/vitest.config.ts b/packages/shapes/vitest.config.ts
new file mode 100644
index 0000000000..8cf5605aa6
--- /dev/null
+++ b/packages/shapes/vitest.config.ts
@@ -0,0 +1,12 @@
+import react from '@vitejs/plugin-react';
+import {defineConfig} from 'vitest/config';
+
+export default defineConfig({
+ test: {
+ testTimeout: 90000,
+ maxConcurrency: 1,
+ threads: false,
+ environment: 'jsdom',
+ },
+ plugins: [react()],
+});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1db47837cb..0bb2dbb3fc 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -965,8 +965,10 @@ importers:
packages/shapes:
specifiers:
'@jonny/eslint-config': 3.0.266
+ '@testing-library/react': ^13.4.0
'@types/node': ^16.7.5
'@types/react': 18.0.26
+ '@vitejs/plugin-react': ^2.0.0
eslint: 8.25.0
prettier: ^2.7.1
prettier-plugin-organize-imports: ^2.3.4
@@ -975,6 +977,8 @@ importers:
typescript: ^4.7.0
vitest: 0.24.3
dependencies:
+ '@testing-library/react': 13.4.0_biqbaboplfbrettd7655fr4n2y
+ '@vitejs/plugin-react': [email protected]
react: 18.2.0
react-dom: [email protected]
devDependencies:
@@ -1172,7 +1176,7 @@ packages:
resolution: {integrity: sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg==}
engines: {node: '>=6.0.0'}
dependencies:
- '@jridgewell/trace-mapping': 0.3.9
+ '@jridgewell/trace-mapping': 0.3.15
/@aws-crypto/crc32/2.0.0:
resolution: {integrity: sha512-TvE1r2CUueyXOuHdEigYjIZVesInd9KN+K/TFFNfkkxRThiNxO6i4ZqqAVMoEjAamZZ1AA8WXJkjCz7YShHPQA==}
@@ -2454,6 +2458,7 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/highlight': 7.18.6
+ dev: false
/@babel/code-frame/7.18.6:
resolution: {integrity: sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==}
@@ -2466,10 +2471,6 @@ packages:
engines: {node: '>=6.9.0'}
dev: false
- /@babel/compat-data/7.18.8:
- resolution: {integrity: sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==}
- engines: {node: '>=6.9.0'}
-
/@babel/compat-data/7.19.1:
resolution: {integrity: sha512-72a9ghR0gnESIa7jBN53U32FOVCEoztyIlKaNoU05zRhEecduGK9L9c3ww7Mp06JiR+0ls0GBPFJQwwtjn9ksg==}
engines: {node: '>=6.9.0'}
@@ -2527,14 +2528,14 @@ packages:
dependencies:
'@ampproject/remapping': 2.1.2
'@babel/code-frame': 7.18.6
- '@babel/generator': 7.18.7
- '@babel/helper-compilation-targets': 7.18.6_@[email protected]
- '@babel/helper-module-transforms': 7.18.8
+ '@babel/generator': 7.19.0
+ '@babel/helper-compilation-targets': 7.19.1_@[email protected]
+ '@babel/helper-module-transforms': 7.19.0
'@babel/helpers': 7.18.6
- '@babel/parser': 7.18.8
- '@babel/template': 7.18.6
- '@babel/traverse': 7.18.8
- '@babel/types': 7.18.8
+ '@babel/parser': 7.19.1
+ '@babel/template': 7.18.10
+ '@babel/traverse': 7.19.1
+ '@babel/types': 7.19.0
convert-source-map: 1.8.0
debug: 4.3.4
gensync: 1.0.0-beta.2
@@ -2552,14 +2553,6 @@ packages:
source-map: 0.5.7
dev: false
- /@babel/generator/7.18.7:
- resolution: {integrity: sha512-shck+7VLlY72a2w9c3zYWuE1pwOKEiQHV7GTUbSnhyl5eu3i04t30tBY82ZRWrDfo3gkakCFtevExnxbkf2a3A==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/types': 7.18.8
- '@jridgewell/gen-mapping': 0.3.2
- jsesc: 2.5.2
-
/@babel/generator/7.19.0:
resolution: {integrity: sha512-S1ahxf1gZ2dpoiFgA+ohK9DIpz50bJ0CWs7Zlzb54Z4sG8qmdIrGrVqmy1sAtTVRb+9CU6U8VqT9L0Zj7hxHVg==}
engines: {node: '>=6.9.0'}
@@ -2579,7 +2572,7 @@ packages:
resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.18.8
+ '@babel/types': 7.19.0
/@babel/helper-builder-binary-assignment-operator-visitor/7.15.4:
resolution: {integrity: sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==}
@@ -2622,18 +2615,6 @@ packages:
semver: 6.3.0
dev: false
- /@babel/helper-compilation-targets/7.18.6_@[email protected]:
- resolution: {integrity: sha512-vFjbfhNCzqdeAtZflUFrG5YIFqGTqsctrtkZ1D/NB0mDW9TwW3GmmUepYY4G9wCET5rY5ugz4OGTcLd614IzQg==}
- engines: {node: '>=6.9.0'}
- peerDependencies:
- '@babel/core': ^7.0.0
- dependencies:
- '@babel/compat-data': 7.18.8
- '@babel/core': 7.18.6
- '@babel/helper-validator-option': 7.18.6
- browserslist: 4.20.2
- semver: 6.3.0
-
/@babel/helper-compilation-targets/7.19.1_@[email protected]:
resolution: {integrity: sha512-LlLkkqhCMyz2lkQPvJNdIYU7O5YjWRgC2R4omjCTpZd8u8KMQzZvX4qce+/BluN1rcQiV7BoGUpmQ0LeHerbhg==}
engines: {node: '>=6.9.0'}
@@ -2762,10 +2743,6 @@ packages:
transitivePeerDependencies:
- supports-color
- /@babel/helper-environment-visitor/7.18.6:
- resolution: {integrity: sha512-8n6gSfn2baOY+qlp+VSzsosjCVGFqWKmDF0cCWOybh52Dw3SEyoWR1KrhMJASjLwIEkkAufZ0xvr+SxLHSpy2Q==}
- engines: {node: '>=6.9.0'}
-
/@babel/helper-environment-visitor/7.18.9:
resolution: {integrity: sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==}
engines: {node: '>=6.9.0'}
@@ -2792,13 +2769,6 @@ packages:
'@babel/types': 7.17.0
dev: false
- /@babel/helper-function-name/7.18.6:
- resolution: {integrity: sha512-0mWMxV1aC97dhjCah5U5Ua7668r5ZmSC2DLfH2EZnf9c3/dHZKiFa5pRLMH5tjSl471tY6496ZWk/kjNONBxhw==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/template': 7.18.6
- '@babel/types': 7.18.8
-
/@babel/helper-function-name/7.19.0:
resolution: {integrity: sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==}
engines: {node: '>=6.9.0'}
@@ -2824,7 +2794,7 @@ packages:
resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.18.8
+ '@babel/types': 7.19.0
/@babel/helper-member-expression-to-functions/7.15.4:
resolution: {integrity: sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==}
@@ -2850,7 +2820,7 @@ packages:
resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.18.8
+ '@babel/types': 7.19.0
/@babel/helper-module-transforms/7.15.7:
resolution: {integrity: sha512-ZNqjjQG/AuFfekFTY+7nY4RgBSklgTu970c7Rj3m/JOhIu5KPBUuTA9AY6zaKcUvk4g6EbDXdBnhi35FAssdSw==}
@@ -2868,21 +2838,6 @@ packages:
- supports-color
dev: false
- /@babel/helper-module-transforms/7.18.8:
- resolution: {integrity: sha512-che3jvZwIcZxrwh63VfnFTUzcAM9v/lznYkkRxIBGMPt1SudOKHAEec0SIRCfiuIzTcF7VGj/CaTT6gY4eWxvA==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/helper-environment-visitor': 7.18.6
- '@babel/helper-module-imports': 7.18.6
- '@babel/helper-simple-access': 7.18.6
- '@babel/helper-split-export-declaration': 7.18.6
- '@babel/helper-validator-identifier': 7.18.6
- '@babel/template': 7.18.6
- '@babel/traverse': 7.18.8
- '@babel/types': 7.18.8
- transitivePeerDependencies:
- - supports-color
-
/@babel/helper-module-transforms/7.19.0:
resolution: {integrity: sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==}
engines: {node: '>=6.9.0'}
@@ -2919,10 +2874,6 @@ packages:
resolution: {integrity: sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==}
engines: {node: '>=6.9.0'}
- /@babel/helper-plugin-utils/7.18.9:
- resolution: {integrity: sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==}
- engines: {node: '>=6.9.0'}
-
/@babel/helper-plugin-utils/7.19.0:
resolution: {integrity: sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==}
engines: {node: '>=6.9.0'}
@@ -2987,7 +2938,7 @@ packages:
resolution: {integrity: sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.18.8
+ '@babel/types': 7.19.0
/@babel/helper-skip-transparent-expression-wrappers/7.15.4:
resolution: {integrity: sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==}
@@ -3013,7 +2964,7 @@ packages:
resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/types': 7.18.8
+ '@babel/types': 7.19.0
/@babel/helper-string-parser/7.18.10:
resolution: {integrity: sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==}
@@ -3078,9 +3029,9 @@ packages:
resolution: {integrity: sha512-vzSiiqbQOghPngUYt/zWGvK3LAsPhz55vc9XNN0xAl2gV4ieShI2OQli5duxWHD+72PZPTKAcfcZDE1Cwc5zsQ==}
engines: {node: '>=6.9.0'}
dependencies:
- '@babel/template': 7.18.6
- '@babel/traverse': 7.18.8
- '@babel/types': 7.18.8
+ '@babel/template': 7.18.10
+ '@babel/traverse': 7.19.1
+ '@babel/types': 7.19.0
transitivePeerDependencies:
- supports-color
@@ -3117,13 +3068,6 @@ packages:
dependencies:
'@babel/types': 7.17.0
- /@babel/parser/7.18.8:
- resolution: {integrity: sha512-RSKRfYX20dyH+elbJK2uqAkVyucL+xXzhqlMD5/ZXx+dAAwpyB7HsvnHe/ZUGOF+xLr5Wx9/JoXVTj6BQE2/oA==}
- engines: {node: '>=6.0.0'}
- hasBin: true
- dependencies:
- '@babel/types': 7.18.8
-
/@babel/parser/7.19.1:
resolution: {integrity: sha512-h7RCSorm1DdTVGJf3P2Mhj3kdnkmF/EiysUkzS2TdgAYqyjFdMQJbVuXOBej2SBJaXan/lIVtT6KkGbyyq753A==}
engines: {node: '>=6.0.0'}
@@ -3866,7 +3810,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.18.6
- '@babel/helper-plugin-utils': 7.18.9
+ '@babel/helper-plugin-utils': 7.19.0
/@babel/plugin-syntax-logical-assignment-operators/7.10.4_@[email protected]:
resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==}
@@ -4967,9 +4911,9 @@ packages:
'@babel/core': 7.18.6
'@babel/helper-annotate-as-pure': 7.18.6
'@babel/helper-module-imports': 7.18.6
- '@babel/helper-plugin-utils': 7.18.9
+ '@babel/helper-plugin-utils': 7.19.0
'@babel/plugin-syntax-jsx': 7.18.6_@[email protected]
- '@babel/types': 7.18.8
+ '@babel/types': 7.19.0
/@babel/plugin-transform-react-pure-annotations/7.14.5_@[email protected]:
resolution: {integrity: sha512-3X4HpBJimNxW4rhUy/SONPyNQHp5YRr0HhJdT2OH1BRp0of7u3Dkirc7x9FRJMKMqTBI079VZ1hzv7Ouuz///g==}
@@ -5737,14 +5681,6 @@ packages:
'@babel/parser': 7.19.1
'@babel/types': 7.19.0
- /@babel/template/7.18.6:
- resolution: {integrity: sha512-JoDWzPe+wgBsTTgdnIma3iHNFC7YVJoPssVBDjiHfNlyt4YcunDtcDOUmfVDfCK5MfdsaIoX9PkijPhjH3nYUw==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/code-frame': 7.18.6
- '@babel/parser': 7.18.8
- '@babel/types': 7.18.8
-
/@babel/traverse/7.15.4:
resolution: {integrity: sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==}
engines: {node: '>=6.9.0'}
@@ -5779,23 +5715,6 @@ packages:
- supports-color
dev: false
- /@babel/traverse/7.18.8:
- resolution: {integrity: sha512-UNg/AcSySJYR/+mIcJQDCv00T+AqRO7j/ZEJLzpaYtgM48rMg5MnkJgyNqkzo88+p4tfRvZJCEiwwfG6h4jkRg==}
- engines: {node: '>=6.9.0'}
- dependencies:
- '@babel/code-frame': 7.18.6
- '@babel/generator': 7.18.7
- '@babel/helper-environment-visitor': 7.18.6
- '@babel/helper-function-name': 7.18.6
- '@babel/helper-hoist-variables': 7.18.6
- '@babel/helper-split-export-declaration': 7.18.6
- '@babel/parser': 7.18.8
- '@babel/types': 7.18.8
- debug: 4.3.4
- globals: 11.12.0
- transitivePeerDependencies:
- - supports-color
-
/@babel/traverse/7.19.1:
resolution: {integrity: sha512-0j/ZfZMxKukDaag2PtOPDbwuELqIar6lLskVPPJDjXMXjfLb1Obo/1yjxIGqqAJrmfaTIY3z2wFLAQ7qSkLsuA==}
engines: {node: '>=6.9.0'}
@@ -5833,6 +5752,7 @@ packages:
dependencies:
'@babel/helper-validator-identifier': 7.18.6
to-fast-properties: 2.0.0
+ dev: true
/@babel/types/7.19.0:
resolution: {integrity: sha512-YuGopBq3ke25BVSiS6fgF49Ul9gH1x70Bcr6bqRLjWCkcX8Hre1/5+z+IiWOIerRMSSEfGZVB9z9kyq7wVs9YA==}
@@ -6901,17 +6821,6 @@ packages:
'@types/yargs': 15.0.14
chalk: 4.1.2
- /@jest/types/27.2.4:
- resolution: {integrity: sha512-IDO2ezTxeMvQAHxzG/ZvEyA47q0aVfzT95rGFl7bZs/Go0aIucvfDbS2rmnoEdXxlLQhcolmoG/wvL/uKx4tKA==}
- engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
- dependencies:
- '@types/istanbul-lib-coverage': 2.0.3
- '@types/istanbul-reports': 3.0.1
- '@types/node': 18.11.2
- '@types/yargs': 16.0.4
- chalk: 4.1.2
- dev: true
-
/@jest/types/27.5.1:
resolution: {integrity: sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
@@ -6971,6 +6880,7 @@ packages:
dependencies:
'@jridgewell/resolve-uri': 3.0.5
'@jridgewell/sourcemap-codec': 1.4.11
+ dev: true
/@leichtgewicht/ip-codec/2.0.3:
resolution: {integrity: sha512-nkalE/f1RvRGChwBnEIoBfSEYOXnCRdleKuv6+lePbMDrMZXeDQnqak5XDOeBgrPPyPfAdcCu/B5z+v3VhplGg==}
@@ -8533,15 +8443,14 @@ packages:
resolution: {integrity: sha512-uxF4zmnLHHDlmW4l+0WDjcgLVwCvH+OVLpD8Dfp+Bjfz85prwxWGbwXgJdLtkgjD0qfOzkJF9SmA6YZPsMYX4w==}
engines: {node: '>=12'}
dependencies:
- '@babel/code-frame': 7.16.7
- '@babel/runtime': 7.17.9
+ '@babel/code-frame': 7.18.6
+ '@babel/runtime': 7.19.0
'@types/aria-query': 4.2.2
aria-query: 5.0.0
chalk: 4.1.2
dom-accessibility-api: 0.5.14
lz-string: 1.4.4
pretty-format: 27.2.4
- dev: true
/@testing-library/react/13.1.1_zpnidt7m3osuk7shl3s4oenomq:
resolution: {integrity: sha512-8mirlAa0OKaUvnqnZF6MdAh2tReYA2KtWVw1PKvaF5EcCZqgK5pl8iF+3uW90JdG5Ua2c2c2E2wtLdaug3dsVg==}
@@ -8571,6 +8480,20 @@ packages:
react-dom: [email protected]
dev: true
+ /@testing-library/react/13.4.0_biqbaboplfbrettd7655fr4n2y:
+ resolution: {integrity: sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw==}
+ engines: {node: '>=12'}
+ peerDependencies:
+ react: ^18.0.0
+ react-dom: ^18.0.0
+ dependencies:
+ '@babel/runtime': 7.19.0
+ '@testing-library/dom': 8.16.0
+ '@types/react-dom': 18.0.10
+ react: 18.2.0
+ react-dom: [email protected]
+ dev: false
+
/@tootallnate/once/1.1.2:
resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==}
engines: {node: '>= 6'}
@@ -8608,7 +8531,6 @@ packages:
/@types/aria-query/4.2.2:
resolution: {integrity: sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==}
- dev: true
/@types/babel__core/7.1.16:
resolution: {integrity: sha512-EAEHtisTMM+KaKwfWdC3oyllIqswlznXCIVCt7/oRNrh+DhgT4UEBNC/jlADNjvw7UnfbcdkGQcPVZ1xYiLcrQ==}
@@ -9486,7 +9408,6 @@ packages:
vite: 3.0.0
transitivePeerDependencies:
- supports-color
- dev: true
/@webassemblyjs/ast/1.11.1:
resolution: {integrity: sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==}
@@ -9841,7 +9762,6 @@ packages:
/ansi-styles/5.2.0:
resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}
engines: {node: '>=10'}
- dev: true
/ansi-styles/6.1.0:
resolution: {integrity: sha512-VbqNsoz55SYGczauuup0MFUyXNQviSpFTj1RQtFzmQLk18qbVSpTFFGMT293rmDaQuKCT6InmbuEyUne4mTuxQ==}
@@ -9890,7 +9810,6 @@ packages:
/aria-query/5.0.0:
resolution: {integrity: sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg==}
engines: {node: '>=6.0'}
- dev: true
/arr-diff/4.0.0:
resolution: {integrity: sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==}
@@ -10448,17 +10367,6 @@ packages:
picocolors: 0.2.1
dev: false
- /browserslist/4.20.2:
- resolution: {integrity: sha512-CQOBCqp/9pDvDbx3xfMi+86pr4KXIf2FDkTTdeuYw8OxS9t898LA1Khq57gtufFILXpfgsSx5woNgsBgvGjpsA==}
- engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
- hasBin: true
- dependencies:
- caniuse-lite: 1.0.30001335
- electron-to-chromium: 1.4.111
- escalade: 3.1.1
- node-releases: 2.0.3
- picocolors: 1.0.0
-
/browserslist/4.21.4:
resolution: {integrity: sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
@@ -10662,6 +10570,7 @@ packages:
/caniuse-lite/1.0.30001335:
resolution: {integrity: sha512-ddP1Tgm7z2iIxu6QTtbZUv6HJxSaV/PZeSrWFZtbY4JZ69tOeNhBCl3HyRQgeNZKE5AOn1kpV7fhljigy0Ty3w==}
+ dev: false
/caniuse-lite/1.0.30001409:
resolution: {integrity: sha512-V0mnJ5dwarmhYv8/MzhJ//aW68UpvnQBXv8lJ2QUsvn2pHcmAuNtu8hQEDz37XnA1iE+lRR9CIfGWWpgJ5QedQ==}
@@ -11983,7 +11892,6 @@ packages:
/dom-accessibility-api/0.5.14:
resolution: {integrity: sha512-NMt+m9zFMPZe0JcY9gN224Qvk6qLIdqex29clBvc/y75ZBX9YA9wNK3frsYvu2DI1xcCIwxwnX+TlsJ2DSOADg==}
- dev: true
/dom-converter/0.2.0:
resolution: {integrity: sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==}
@@ -12114,9 +12022,6 @@ packages:
resolution: {integrity: sha512-gXRXKNWedfdiKIzwr0Mg/VGCvxXzy+4SuK9hp1BDvfbCwx0O5Ot+2f4CoqQkqEJ3Zj/eAV/GoAFgBVFgkBLXuQ==}
dev: false
- /electron-to-chromium/1.4.111:
- resolution: {integrity: sha512-/s3+fwhKf1YK4k7btOImOzCQLpUjS6MaPf0ODTNuT4eTM1Bg4itBpLkydhOzJmpmH6Z9eXFyuuK5czsmzRzwtw==}
-
/electron-to-chromium/1.4.258:
resolution: {integrity: sha512-vutF4q0dTUXoAFI7Vbtdwen/BJVwPgj8GRg/SElOodfH7VTX+svUe62A5BG41QRQGk5HsZPB0M++KH1lAlOt0A==}
@@ -15704,7 +15609,6 @@ packages:
engines: {node: '>=12'}
dependencies:
sourcemap-codec: 1.4.8
- dev: true
/make-dir/2.1.0:
resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==}
@@ -16682,9 +16586,6 @@ packages:
resolution: {integrity: sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==}
dev: false
- /node-releases/2.0.3:
- resolution: {integrity: sha512-maHFz6OLqYxz+VQyCAtA3PTX4UP/53pa05fyDNc9CwjvJ0yEh6+xBwKsgCxMNhS8taUKBFYxfuiaD9U/55iFaw==}
-
/node-releases/2.0.6:
resolution: {integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==}
@@ -18114,11 +18015,10 @@ packages:
resolution: {integrity: sha512-NUjw22WJHldzxyps2YjLZkUj6q1HvjqFezkB9Y2cklN8NtVZN/kZEXGZdFw4uny3oENzV5EEMESrkI0YDUH8vg==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
dependencies:
- '@jest/types': 27.2.4
+ '@jest/types': 27.5.1
ansi-regex: 5.0.1
ansi-styles: 5.2.0
react-is: 17.0.2
- dev: true
/pretty-time/1.1.0:
resolution: {integrity: sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==}
@@ -18723,7 +18623,6 @@ packages:
/react-refresh/0.14.0:
resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==}
engines: {node: '>=0.10.0'}
- dev: true
/react-refresh/0.4.3:
resolution: {integrity: sha512-Hwln1VNuGl/6bVwnd0Xdn1e84gT/8T9aYNL+HAKDArLCS7LWjwr7StE30IEYbIkx0Vi3vs+coQxe+SQDbGbbpA==}
@@ -20032,7 +19931,7 @@ packages:
/sourcemap-codec/1.4.8:
resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
- dev: true
+ deprecated: Please use @jridgewell/sourcemap-codec instead
/space-separated-tokens/1.1.5:
resolution: {integrity: sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==}