Skip to content

Commit

Permalink
Don’t use TypeScript files in scripts package (#54856)
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Sep 27, 2023
1 parent 7cec843 commit 16e11d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
* External dependencies
*/
import { request } from '@playwright/test';
import type { FullConfig } from '@playwright/test';

/**
* WordPress dependencies
*/
import { RequestUtils } from '@wordpress/e2e-test-utils-playwright';

async function globalSetup( config: FullConfig ) {
/**
*
* @param {import('@playwright/test').FullConfig} config
* @return {Promise<void>}
*/
async function globalSetup( config ) {
const { storageState, baseURL } = config.projects[ 0 ].use;
const storageStatePath =
typeof storageState === 'string' ? storageState : undefined;
Expand Down

0 comments on commit 16e11d4

Please sign in to comment.