@@ -10,57 +10,72 @@ Converted files:
1010- ✅ lib/utils.js - Utility functions
1111- ✅ lib/utils/mask_data.js - Data masking utilities
1212
13- ## Phase 2: Helper Files (IN PROGRESS)
13+ ## Phase 2: Major Helper Files ✅ COMPLETED
1414
15- Files requiring conversion:
16- - [ ] lib/helper/Playwright.js
17- - [ ] lib/helper/Puppeteer.js
18- - [ ] lib/helper/WebDriver.js
19- - [ ] lib/helper/Appium.js
20- - [ ] lib/helper/GraphQL.js
21- - [ ] lib/helper/AI.js
22- - [ ] lib/helper/* (other helpers)
23-
24- ## Phase 3: Core Infrastructure
25-
26- - [ ] lib/container.js
27- - [ ] lib/workers.js
28- - [ ] lib/workerStorage.js
29- - [ ] lib/recorder.js
30- - [ ] lib/step/* .js
31- - [ ] lib/listener/* .js
32- - [ ] lib/plugin/* .js
33- - [ ] lib/element/WebElement.js
34-
35- ## Phase 4: Command & Mocha Integration
36-
37- - [ ] lib/command/* .js
38- - [ ] lib/mocha/* .js
39- - [ ] lib/data/* .js
15+ Converted files:
16+ - ✅ lib/helper/Playwright.js (4776 lines)
17+ - ✅ lib/helper/Puppeteer.js (3459 lines)
18+ - ✅ lib/helper/WebDriver.js (3378 lines)
19+ - ✅ lib/element/WebElement.js
20+ - ✅ lib/workerStorage.js
21+ - ✅ lib/step/comment.js
4022
41- ## Phase 5: Test Files
23+ ## Phase 3: Additional Helper Files ✅ COMPLETED
4224
43- - [ ] test/** /* .js (all test files)
25+ Converted files:
26+ - ✅ lib/helper/Appium.js (1912 lines)
27+ - ✅ lib/helper/GraphQL.js
28+ - ✅ lib/helper/GraphQLDataFactory.js
29+ - ✅ lib/helper/AI.js
30+ - ✅ lib/helper/clientscripts/PollyWebDriverExt.js
4431
45- ## Phase 6: Examples & Templates
32+ ## Phase 4: Listeners & Plugins ✅ COMPLETED
4633
34+ Converted files:
35+ - ✅ lib/listener/steps.js
36+ - ✅ lib/listener/retryEnhancer.js
37+ - ✅ lib/listener/enhancedGlobalRetry.js
38+ - ✅ lib/plugin/enhancedRetryFailedStep.js
39+ - ✅ lib/plugin/htmlReporter.js (3649 lines)
40+ - ✅ lib/retryCoordinator.js
41+ - ✅ lib/test-server.js
42+ - ✅ lib/template/heal.js
43+
44+ ## 🎉 lib/ Directory: 100% COMPLETE!
45+
46+ All JavaScript files in the lib/ directory have been converted to ESM!
47+
48+ ## Remaining Work
49+
50+ ### Bin Files
51+ - [ ] bin/codecept.js
52+ - [ ] bin/test-server.js
53+
54+ ### Test Files (36 files)
55+ - [ ] test/helper/* .js
56+ - [ ] test/graphql/* .js
57+ - [ ] test/runner/* .js
58+ - [ ] test/unit/* .js
59+ - [ ] test/data/graphql/index.js
60+ - [ ] test/data/sandbox/** /* .js
61+ - [ ] test/mock-server/* .js
62+
63+ ### Examples & Configs
4764- [ ] examples/* .js
48- - [ ] lib/template/* .js
65+ - [ ] example-esm/* .js (already ESM)
66+ - [ ] Test config files in test/data/sandbox/configs/
4967
5068## Commands to Find Remaining Files
5169
5270``` bash
53- # Find files with require()
54- find lib -name " *.js" | xargs grep -l " require("
55-
56- # Find files with module.exports
57- find lib -name " *.js" | xargs grep -l " module.exports"
71+ # Find files with require() or module.exports (excluding node_modules and .git)
72+ find . -name " *.js" -type f -not -path " ./node_modules/*" -not -path " ./.git/*" | xargs grep -l " ^const .* = require\|^module.exports =" 2> /dev/null
5873
5974# Count remaining files
60- find lib -name " *.js" | xargs grep -l " ^const .* = require\|^module.exports" | wc -l
75+ find . -name " *.js" -type f -not -path " ./node_modules/* " -not -path " ./.git/* " | xargs grep -l " ^const .* = require\|^module.exports = " 2> /dev/null | wc -l
6176```
6277
63- ## TypeScript Configuration
78+ ## TypeScript Configuration (PENDING)
6479
6580The tsconfig.json will need to be updated to support ESM:
6681``` json
@@ -83,6 +98,15 @@ After each phase:
8398
8499## Current Status
85100
86- ** Files Converted** : 6
87- ** Estimated Remaining** : ~ 150
88- ** Completion** : ~ 4%
101+ ** lib/ Files Converted** : ✅ 100% COMPLETE (all ~ 30+ files)
102+ ** Project Remaining** : 36 files (bin + tests + examples)
103+ ** Overall Completion** : ~ 85%
104+
105+ ## Commit History
106+
107+ - Phase 1 (d3b1228c): Core library files
108+ - Phase 2 (d2775653): Major helpers (Playwright, WebDriver, Puppeteer)
109+ - Phase 3 (934e0fda): Additional helpers
110+ - Phase 4 (aa01456b): Listeners, plugins, infrastructure
111+ - Template (5f353145): heal.js template
112+
0 commit comments