Revert "Upgrade linter and formatter to Ultracite" (#1226)

This commit is contained in:
josh 2025-09-21 12:03:29 +01:00 committed by GitHub
parent 0e320b391d
commit 1aff7d9868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
177 changed files with 8334 additions and 6943 deletions

View file

@ -1,14 +1,14 @@
import { expect as baseExpect, test as baseTest } from "@playwright/test";
import { getUnixTime } from "date-fns";
import { createAuthenticatedContext, type UserContext } from "./helpers";
import { expect as baseExpect, test as baseTest } from '@playwright/test';
import { createAuthenticatedContext, type UserContext } from './helpers';
import { getUnixTime } from 'date-fns';
type Fixtures = {
interface Fixtures {
adaContext: UserContext;
babbageContext: UserContext;
curieContext: UserContext;
};
}
export const test = baseTest.extend<object, Fixtures>({
export const test = baseTest.extend<{}, Fixtures>({
adaContext: [
async ({ browser }, use, workerInfo) => {
const ada = await createAuthenticatedContext({
@ -19,7 +19,7 @@ export const test = baseTest.extend<object, Fixtures>({
await use(ada);
await ada.context.close();
},
{ scope: "worker" },
{ scope: 'worker' },
],
babbageContext: [
async ({ browser }, use, workerInfo) => {
@ -31,19 +31,20 @@ export const test = baseTest.extend<object, 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' },
],
});