fix(frontend): add @types/node, fix Playwright base.extend type in fixtures
Some checks failed
Release / release (push) Failing after 1m27s
Some checks failed
Release / release (push) Failing after 1m27s
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user