Skip to content

Commit

Permalink
Don’t use TypeScript files in scripts package
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Sep 27, 2023
1 parent 66903ed commit 1e2b8b9
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 1e2b8b9

Please sign in to comment.