fix(frontend): add @types/node, fix Playwright base.extend type in fixtures
Some checks failed
Release / release (push) Failing after 1m27s

This commit is contained in:
2026-04-29 21:42:32 +02:00
parent bae4ff24ea
commit ee98d6844a
3 changed files with 34 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import { test as base, expect } from '@playwright/test';
import { test as base, expect, type Page } from '@playwright/test';
import * as fs from 'fs';
import * as path from 'path';
import { fileURLToPath } from 'url';
@@ -16,7 +16,7 @@ function getBaseURL(): string {
}
// Extends base test with a beforeEach that resets DB to clean seed state
export const test = base.extend<{ page: Parameters<Parameters<typeof base>[1]>[0]['page'] }>({
export const test = base.extend<{ page: Page }>({
page: async ({ page }, use) => {
const baseURL = getBaseURL();
const res = await page.request.post(`${baseURL}/__test__/reset`);