Enforces explicit type imports (#7158)
* Enforces explicit type imports * Upgrades typescript-eslint * Upgrades eslint related dependencies * Update config * Sync packages mismatches * Syncs prettier version * Linting * Relocks node version * Fixes * Locks @vitejs/plugin-react to 1.3.2 * Linting
This commit is contained in:
1 parent
3df289b557
commit
7c749299bb
425 files changed
+1216
-1069
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { expect, Page } from "@playwright/test";
|
||||
import type { Page } from "@playwright/test";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
import { test } from "./lib/fixtures";
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ test.describe("Event Types tests", () => {
|
||||
});
|
||||
|
||||
await page.click("[data-testid=vertical-tab-recurring]");
|
||||
await expect(page.locator("[data-testid=recurring-event-collapsible]")).not.toBeVisible();
|
||||
await expect(page.locator("[data-testid=recurring-event-collapsible]")).toBeHidden();
|
||||
await page.click("[data-testid=recurring-event-check]");
|
||||
await expect(page.locator("[data-testid=recurring-event-collapsible]")).toBeVisible();
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import dayjs from "@calcom/dayjs";
|
||||
import { DEFAULT_SCHEDULE, getAvailabilityFromSchedule } from "@calcom/lib/availability";
|
||||
import { prisma } from "@calcom/prisma";
|
||||
|
||||
import { TimeZoneEnum } from "./types";
|
||||
import type { TimeZoneEnum } from "./types";
|
||||
|
||||
// Don't import hashPassword from app as that ends up importing next-auth and initializing it before NEXTAUTH_URL can be updated during tests.
|
||||
export async function hashPassword(password: string) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { expect, Page, Route } from "@playwright/test";
|
||||
import type { Page, Route } from "@playwright/test";
|
||||
import { expect } from "@playwright/test";
|
||||
import { rest } from "msw";
|
||||
import { setupServer } from "msw/node";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import detect from "detect-port";
|
||||
import { createServer, Server } from "http";
|
||||
import type { Server } from "http";
|
||||
import { createServer } from "http";
|
||||
import next from "next";
|
||||
import { parse } from "url";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Prisma } from "@prisma/client";
|
||||
import type { Prisma } from "@prisma/client";
|
||||
|
||||
import prisma from "@calcom/prisma";
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { expect, Page, test } from "@playwright/test";
|
||||
import { createServer, IncomingMessage, ServerResponse } from "http";
|
||||
import type { Page } from "@playwright/test";
|
||||
import { expect, test } from "@playwright/test";
|
||||
import type { IncomingMessage, ServerResponse } from "http";
|
||||
import { createServer } from "http";
|
||||
import noop from "lodash/noop";
|
||||
|
||||
export function todo(title: string) {
|
||||
|
||||
@@ -35,7 +35,7 @@ test.describe("Reschedule Tests", async () => {
|
||||
await page.fill('[data-testid="reschedule_reason"]', "I can't longer have it");
|
||||
|
||||
await page.locator('button[data-testid="send_request"]').click();
|
||||
await expect(page.locator('[id="modal-title"]')).not.toBeVisible();
|
||||
await expect(page.locator('[id="modal-title"]')).toBeHidden();
|
||||
|
||||
const updatedBooking = await booking.self();
|
||||
|
||||
|
||||
Reference in new issue
Block a user