diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index 05bb5c1d00..dec1cef839 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2021", "module": "commonjs", - "lib": ["ES2020"], + "lib": ["ES2021"], "outDir": "./dist", "rootDir": ".", "strict": true, diff --git a/src/test/pages/Groups.test.tsx b/src/test/pages/Groups.test.tsx index 94dca27328..72481363de 100644 --- a/src/test/pages/Groups.test.tsx +++ b/src/test/pages/Groups.test.tsx @@ -190,7 +190,7 @@ describe("Groups", () => { window.confirm = jest.fn(() => true); await act(() => userEvent.click(deleteButton)); expect(window.confirm).toHaveBeenCalledTimes(1); - expect(correctDeleteRequests).toEqual(1); + await waitFor(() => expect(correctDeleteRequests).toEqual(1)); await waitFor(() => { const newGroupNames = screen