fix: update eslint config to test .ts and .js separately (#2805)
* fix: update eslint config * fix: update ts ignore * fix: update eslint config * Update TeamAvailabilityScreen.tsx * Type fixes * Update useIntercom.ts Co-authored-by: Omar López <[email protected]>
This commit is contained in:
1 parent
952a149604
commit
31aff64e42
12 files changed
+43
-36
No files matched your search
@@ -15,7 +15,7 @@ type BookingFixture = ReturnType<typeof createBookingFixture>;
|
||||
|
||||
// creates a user fixture instance and stores the collection
|
||||
export const createBookingsFixture = (page: Page) => {
|
||||
let store = { bookings: [], page } as { bookings: BookingFixture[]; page: typeof page };
|
||||
const store = { bookings: [], page } as { bookings: BookingFixture[]; page: typeof page };
|
||||
return {
|
||||
create: async (
|
||||
userId: number,
|
||||
|
||||
@@ -8,7 +8,7 @@ type PaymentFixture = ReturnType<typeof createPaymentFixture>;
|
||||
|
||||
// creates a user fixture instance and stores the collection
|
||||
export const createPaymentsFixture = (page: Page) => {
|
||||
let store = { payments: [], page } as { payments: PaymentFixture[]; page: typeof page };
|
||||
const store = { payments: [], page } as { payments: PaymentFixture[]; page: typeof page };
|
||||
return {
|
||||
create: async (
|
||||
bookingId: number,
|
||||
|
||||
@@ -22,7 +22,7 @@ type UserWithIncludes = PrismaType.UserGetPayload<typeof userWithEventTypes>;
|
||||
|
||||
// creates a user fixture instance and stores the collection
|
||||
export const createUsersFixture = (page: Page, workerInfo: WorkerInfo) => {
|
||||
let store = { users: [], page } as { users: UserFixture[]; page: typeof page };
|
||||
const store = { users: [], page } as { users: UserFixture[]; page: typeof page };
|
||||
return {
|
||||
create: async (opts?: CustomUserOpts) => {
|
||||
const _user = await prisma.user.create({
|
||||
|
||||
@@ -2,7 +2,7 @@ import { expect, Page, test } from "@playwright/test";
|
||||
import { createServer, IncomingMessage, ServerResponse } from "http";
|
||||
|
||||
export function todo(title: string) {
|
||||
// eslint-disable-next-line playwright/no-skipped-test
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
test.skip(title, () => {});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user