Skip to content

Commit

Permalink
smoke-tests: Fix red squiggles (type import, * as) (#9193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Sep 18, 2023
1 parent 83d180f commit 4d06556
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
5 changes: 3 additions & 2 deletions tasks/smoke-tests/auth/tests/rbacChecks.spec.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
3 changes: 2 additions & 1 deletion tasks/smoke-tests/common.ts
Original file line number Diff line number Diff line change
@@ -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('/')
Expand Down
10 changes: 5 additions & 5 deletions tasks/smoke-tests/prerender/tests/prerender.spec.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions tasks/smoke-tests/storybook/tests/storybook.spec.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 4d06556

Please sign in to comment.