chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -59,9 +59,7 @@ describe("pw-tools-core", () => {
expect(res.buffer.toString()).toBe("E");
expect(sessionMocks.getPageForTargetId).toHaveBeenCalled();
expect(
currentPage.locator as ReturnType<typeof vi.fn>,
).toHaveBeenCalledWith("#main");
expect(currentPage.locator as ReturnType<typeof vi.fn>).toHaveBeenCalledWith("#main");
expect(elementScreenshot).toHaveBeenCalledWith({ type: "png" });
});
it("screenshots a ref locator", async () => {
@@ -115,9 +113,7 @@ describe("pw-tools-core", () => {
});
it("arms the next file chooser and sets files (default timeout)", async () => {
const fileChooser = { setFiles: vi.fn(async () => {}) };
const waitForEvent = vi.fn(
async (_event: string, _opts: unknown) => fileChooser,
);
const waitForEvent = vi.fn(async (_event: string, _opts: unknown) => fileChooser);
currentPage = {
waitForEvent,
keyboard: { press: vi.fn(async () => {}) },