Skip to content

Commit 2b35b81

Browse files
committed
move tests dir
1 parent 1bbfb7d commit 2b35b81

20 files changed

+55
-46
lines changed

package-lock.json

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,6 @@
5252
}
5353
},
5454
"devDependencies": {
55-
"bootstrap": "^5.3.3",
56-
"prettier": "^3.2.5",
57-
"@types/jest": "^29.2.3",
58-
"ts-jest": "^29.0.3",
59-
"jest": "^29.3.1",
60-
"jest-environment-jsdom": "^29.3.1",
61-
"jest-transform-css": "^6.0.0",
62-
"@testing-library/react": "^14.2.1",
63-
"@testing-library/user-event": "^14.4.3",
6455
"@chromatic-com/storybook": "^1.2.25",
6556
"@storybook/addon-essentials": "^8.0.4",
6657
"@storybook/addon-interactions": "^8.0.4",
@@ -70,19 +61,29 @@
7061
"@storybook/react": "^8.0.4",
7162
"@storybook/react-vite": "^8.0.4",
7263
"@storybook/test": "^8.0.4",
64+
"@testing-library/react": "^14.2.1",
65+
"@testing-library/user-event": "^14.4.3",
66+
"@types/jest": "^29.2.3",
7367
"@types/node": "^20.11.30",
7468
"@types/react": "^18.2.66",
7569
"@types/react-dom": "^18.2.22",
7670
"@typescript-eslint/eslint-plugin": "^7.2.0",
7771
"@typescript-eslint/parser": "^7.2.0",
7872
"@vitejs/plugin-react": "^4.2.1",
73+
"bootstrap": "^5.3.3",
7974
"eslint": "^8.57.0",
8075
"eslint-plugin-react-hooks": "^4.6.0",
8176
"eslint-plugin-react-refresh": "^0.4.6",
8277
"eslint-plugin-storybook": "^0.8.0",
78+
"jest": "^29.3.1",
79+
"jest-environment-jsdom": "^29.3.1",
80+
"jest-transform-css": "^6.0.0",
81+
"prettier": "^3.2.5",
8382
"react": "^18.2.0",
8483
"react-dom": "^18.2.0",
84+
"rollup-plugin-exclude-dependencies-from-bundle": "^1.1.23",
8585
"storybook": "^8.0.4",
86+
"ts-jest": "^29.0.3",
8687
"typescript": "^5.3.3",
8788
"vite": "^5.2.0",
8889
"vite-plugin-dts": "^3.7.3",

src/__tests__/data-table/usePagination.test.ts renamed to tests/data-table/usePagination.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import usePagination from '../../data-table/pagination/usePagination';
17+
import usePagination from '../../src/data-table/pagination/usePagination';
1818

1919
describe('usePagination', () => {
2020
test('base=0: 0 pages', () => {

src/__tests__/form/RruCheckboxInput.test.tsx renamed to tests/form/RruCheckboxInput.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import { act, render, renderHook, screen, waitFor } from '@testing-library/react';
1818
import userEvent from '@testing-library/user-event';
1919
import * as yup from 'yup';
20-
import RruCheckboxInput from '../../form/RruCheckboxInput/RruCheckboxInput';
21-
import RruForm from '../../form/RruForm/RruForm';
22-
import { useRruForm } from '../../form/hooks/useRruForm';
20+
import RruCheckboxInput from '../../src/form/RruCheckboxInput/RruCheckboxInput';
21+
import RruForm from '../../src/form/RruForm/RruForm';
22+
import { useRruForm } from '../../src/form/hooks/useRruForm';
2323
import submitForm from '../__utils__/submitForm';
2424

2525
describe('RruCheckboxInput', () => {

src/__tests__/form/RruDateTimeInput.test.tsx renamed to tests/form/RruDateTimeInput.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
import { act, render, renderHook, screen, waitFor } from '@testing-library/react';
1818
import * as yup from 'yup';
19-
import RruDateTimeInput from '../../form/RruDateTimeInput/RruDateTimeInput';
20-
import RruForm from '../../form/RruForm/RruForm';
21-
import { useRruForm } from '../../form/hooks/useRruForm';
19+
import RruDateTimeInput from '../../src/form/RruDateTimeInput/RruDateTimeInput';
20+
import RruForm from '../../src/form/RruForm/RruForm';
21+
import { useRruForm } from '../../src/form/hooks/useRruForm';
2222
import selectDate from '../__utils__/selectDate';
2323
import submitForm from '../__utils__/submitForm';
2424

0 commit comments

Comments
 (0)