Commit graph

6 commits

Author SHA1 Message Date
regexowl
eb2cfe9a2f test: Move @testing-library/jest-dom import to test setup file
This removes `@testing-library/jest-dom` from single test files and adds it to the shared setup.ts file.
2024-07-22 15:49:18 +02:00
regexowl
a5f69a2559 test: Move shared imports to setup.ts file 2024-07-16 16:55:31 +02:00
regexowl
98c17e55df test: Move beforeEach blocks inside describe
This moved the `beforeEach` blocks inside the `describe` blocks as per documentation.

Previously the code inside `beforeEach` didn't trigger which lead to problems with asynchrocinity as mocks didn't get cleared.
2024-07-16 16:55:31 +02:00
regexowl
8597929ff3 test: test: Remove act() warnings
This removes `Warning: An update to <component> inside a test was not wrapped inact(...)` warnings.
2024-07-16 16:55:31 +02:00
regexowl
2a48966bba test: Update test files to work with Vitest
This updates the files to be compatible with Vitest. Changes include:
- adding `@testing-library/jest-dom` import to enable custom jest matchers
- renaming `jest.` to `vi.`
- setting flags to false as default where needed
2024-07-16 16:55:31 +02:00
regexowl
f2f64945c1 test: Migrate remaining files to TypeScript
This migrates remaining JavaScript file to TypeScript.
2024-05-03 16:36:26 +02:00
Renamed from src/test/Components/ShareImageModal/ShareImageModal.test.js (Browse further)