Enables strict mode in nextjs apps (#2354)

- We need this so zod works correctly

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Omar LópezandPeer Richelsen authored and GitHub committed 2022-04-04 20:26:14 +00:00
1 parent 4ff21deb89
commit a7f5250b4a
25 files changed
+178 -68

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ import {
todo,
} from "./lib/testUtils";
async function bookFirstEvent(page) {
async function bookFirstEvent(page: Page) {
// Click first event type
await page.click('[data-testid="event-type-link"]');
await selectFirstAvailableTimeSlotNextMonth(page);
+3 -3
View File
@@ -1,4 +1,4 @@
import { expect, test } from "@playwright/test";
import { expect, Locator, test } from "@playwright/test";
import { randomString } from "../lib/random";
import { deleteEventTypeByTitle } from "./lib/teardown";
@@ -11,8 +11,8 @@ test.describe("Event Types tests", () => {
});
test.describe("pro user", () => {
let isCreated;
let eventTitle;
let isCreated: Locator;
let eventTitle: string;
test.afterAll(async () => {
if (isCreated) await deleteEventTypeByTitle(eventTitle);