Fix build issues

This commit is contained in:
Laurent Nguyen
2024-05-13 12:09:01 +02:00
parent 58b9e67616
commit 00bd339fb6
3 changed files with 8 additions and 23 deletions

View File

@@ -357,9 +357,7 @@ describe("Documents tab", () => {
beforeEach(() => {
const props: IDocumentsTabComponentProps = createMockProps();
// Enzyme doesn't seem to support hooks, so we need to cast the component to any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
wrapper = shallow((<DocumentsTabComponent {...props} />) as any);
wrapper = shallow(<DocumentsTabComponent {...props} />);
});
afterEach(() => {
@@ -421,9 +419,7 @@ describe("Documents tab", () => {
const props: IDocumentsTabComponentProps = createMockProps();
// Enzyme doesn't seem to support hooks, so we need to cast the component to any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
wrapper = mount((<DocumentsTabComponent {...props} />) as any);
wrapper = mount(<DocumentsTabComponent {...props} />);
wrapper = await waitForComponentToPaint(wrapper);
});