Upgrade linter and formatter to Ultracite (#1224)

This commit is contained in:
Hayden Bleasel 2025-09-20 12:47:10 -07:00 committed by GitHub
parent b1d254283b
commit 0e320b391d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
177 changed files with 6951 additions and 8342 deletions

View file

@ -1,14 +1,14 @@
import { expect as baseExpect, test as baseTest } from '@playwright/test';
import { createAuthenticatedContext, type UserContext } from './helpers';
import { getUnixTime } from 'date-fns';
import { expect as baseExpect, test as baseTest } from "@playwright/test";
import { getUnixTime } from "date-fns";
import { createAuthenticatedContext, type UserContext } from "./helpers";
interface Fixtures {
type Fixtures = {
adaContext: UserContext;
babbageContext: UserContext;
curieContext: UserContext;
}
};
export const test = baseTest.extend<{}, Fixtures>({
export const test = baseTest.extend<object, Fixtures>({
adaContext: [
async ({ browser }, use, workerInfo) => {
const ada = await createAuthenticatedContext({
@ -19,7 +19,7 @@ export const test = baseTest.extend<{}, Fixtures>({
await use(ada);
await ada.context.close();
},
{ scope: 'worker' },
{ scope: "worker" },
],
babbageContext: [
async ({ browser }, use, workerInfo) => {
@ -31,20 +31,19 @@ export const test = baseTest.extend<{}, Fixtures>({
await use(babbage);
await babbage.context.close();
},
{ scope: 'worker' },
{ scope: "worker" },
],
curieContext: [
async ({ browser }, use, workerInfo) => {
const curie = await createAuthenticatedContext({
browser,
name: `curie-${workerInfo.workerIndex}-${getUnixTime(new Date())}`,
chatModel: 'chat-model-reasoning',
});
await use(curie);
await curie.context.close();
},
{ scope: 'worker' },
{ scope: "worker" },
],
});