diff --git a/tasks/smoke-tests/auth/tests/rbacChecks.spec.ts b/tasks/smoke-tests/auth/tests/rbacChecks.spec.ts index 137093785fb9..216c49e97f48 100644 --- a/tasks/smoke-tests/auth/tests/rbacChecks.spec.ts +++ b/tasks/smoke-tests/auth/tests/rbacChecks.spec.ts @@ -1,8 +1,9 @@ -import fs from 'node:fs' -import path from 'node:path' +import * as fs from 'node:fs' +import * as path from 'node:path' import { test, expect } from '@playwright/test' import type { PlaywrightTestArgs, Page } from '@playwright/test' +// @ts-expect-error - With `* as` you have to use .default() when calling execa import execa from 'execa' import { loginAsTestUser, signUpTestUser } from '../../common' diff --git a/tasks/smoke-tests/common.ts b/tasks/smoke-tests/common.ts index 0857780114ee..d2ab977dddba 100644 --- a/tasks/smoke-tests/common.ts +++ b/tasks/smoke-tests/common.ts @@ -1,4 +1,5 @@ -import { expect, PlaywrightTestArgs } from '@playwright/test' +import { expect } from '@playwright/test' +import type { PlaywrightTestArgs } from '@playwright/test' export async function smokeTest({ page }: PlaywrightTestArgs) { await page.goto('/') diff --git a/tasks/smoke-tests/prerender/tests/prerender.spec.ts b/tasks/smoke-tests/prerender/tests/prerender.spec.ts index fa738164c266..77557ec35613 100644 --- a/tasks/smoke-tests/prerender/tests/prerender.spec.ts +++ b/tasks/smoke-tests/prerender/tests/prerender.spec.ts @@ -1,13 +1,13 @@ -import fs from 'fs' -import path from 'path' +import * as fs from 'fs' +import * as path from 'path' -import { - test, +import { test, expect } from '@playwright/test' +import type { BrowserContext, - expect, PlaywrightTestArgs, PlaywrightWorkerArgs, } from '@playwright/test' +// @ts-expect-error - With `* as` you have to use .default() when calling execa import execa from 'execa' let noJsBrowser: BrowserContext diff --git a/tasks/smoke-tests/storybook/tests/storybook.spec.ts b/tasks/smoke-tests/storybook/tests/storybook.spec.ts index 0940ac8b709f..22ab60aead42 100644 --- a/tasks/smoke-tests/storybook/tests/storybook.spec.ts +++ b/tasks/smoke-tests/storybook/tests/storybook.spec.ts @@ -1,5 +1,5 @@ -import fs from 'fs' -import path from 'path' +import * as fs from 'fs' +import * as path from 'path' import { test, expect } from '@playwright/test' import type { PlaywrightTestArgs } from '@playwright/test'