Skip to content

Commit 3b3b803

Browse files
📝 Add docstrings to codex/add-setup-step-for-playwright-tests
Docstrings generation was requested by @shayancoin. * #165 (comment) The following files were modified: * `playwright.global-setup.ts`
1 parent f5e8dd1 commit 3b3b803

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎playwright.global-setup.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ import fs from 'fs';
22
import path from 'path';
33
import type { FullConfig } from '@playwright/test';
44

5+
/**
6+
* Ensures an `artifacts` directory next to this module exists.
7+
*
8+
* Creates the directory at `<module_dir>/artifacts` if it is missing.
9+
*/
510
async function globalSetup(_config: FullConfig) {
611
const artifactsDir = path.resolve(__dirname, 'artifacts');
712
await fs.promises.mkdir(artifactsDir, { recursive: true });
813
}
914

10-
export default globalSetup;
15+
export default globalSetup;

0 commit comments

Comments
 (0)