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 and mikachan committed Oct 2, 2023
1 parent fd167db commit c4ffd4a
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 c4ffd4a

Please sign in to comment.