You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Rename test config files from .js to .cjs
Renamed CommonJS config files in test/data/sandbox/configs/ to .cjs extension:
- html-reporter-plugin configs (6 files)
- timeout configs (4 files)
- only config (1 file)
Also updated test/runner/html-reporter-plugin_test.js to reference .cjs files.
This fixes 'exports is not defined' errors when running tests with ESM enabled.
@@ -564,47 +499,7 @@ to avoid conflicts and provide predictable behavior.
564
499
565
500
### Parameters
566
501
567
-
- `config`  
568
-
569
-
## fakerTransform
570
-
571
-
Use the `@faker-js/faker` package to generate fake data inside examples on your gherkin tests
572
-
573
-
#### Usage
574
-
575
-
To start please install `@faker-js/faker` package
576
-
577
-
npm install -D @faker-js/faker
578
-
579
-
<!---->
580
-
581
-
yarn add -D @faker-js/faker
582
-
583
-
Add this plugin to config file:
584
-
585
-
```js
586
-
plugins: {
587
-
fakerTransform: {
588
-
enabled:true
589
-
}
590
-
}
591
-
```
592
-
593
-
Add the faker API using a mustache string format inside examples tables in your gherkin scenario outline
594
-
595
-
```feature
596
-
Scenario Outline:...
597
-
Given ...
598
-
When ...
599
-
Then ...
600
-
Examples:
601
-
| productName | customer | email | anythingMore |
602
-
| {{commerce.product}} | Dr. {{name.findName}} | {{internet.email}} | staticData |
603
-
```
604
-
605
-
### Parameters
606
-
607
-
- `config`  
502
+
* `config`  
608
503
609
504
## heal
610
505
@@ -634,10 +529,10 @@ HTML Reporter Plugin for CodeceptJS
634
529
635
530
Generates comprehensive HTML reports showing:
636
531
637
-
- Test statistics
638
-
- Feature/Scenario details
639
-
- Individual step results
640
-
- Test artifacts (screenshots, etc.)
532
+
* Test statistics
533
+
* Feature/Scenario details
534
+
* Individual step results
535
+
* Test artifacts (screenshots, etc.)
641
536
642
537
## Configuration
643
538
@@ -664,7 +559,7 @@ Generates comprehensive HTML reports showing:
664
559
665
560
### Parameters
666
561
667
-
-`config`  
562
+
* `config`  
668
563
669
564
## pageInfo
670
565
@@ -710,6 +605,10 @@ Enable it manually on each run via `-p` option:
710
605
711
606
npx codeceptjs run -p pauseOnFail
712
607
608
+
## reportData
609
+
610
+
TypeScript: Explicitly type reportData arrays as any\[] to avoid 'never' errors
611
+
713
612
## retryFailedStep
714
613
715
614
Retries each failed step in a test.
@@ -783,7 +682,7 @@ Safely serialize data to JSON, handling circular references
783
682
784
683
### Parameters
785
684
786
-
-`data`  
685
+
* `data`  
787
686
788
687
## screenshotOnFail
789
688
@@ -874,9 +773,10 @@ Run tests with plugin enabled:
874
773
875
774
* `overrideStepLimits` - whether to use timeouts set in plugin config to override step timeouts set in code with I.limitTime(x).action(...), default false
876
775
877
-
- `noTimeoutSteps` - an array of steps with no timeout. Default:
878
-
- `amOnPage`
879
-
- `wait*`
776
+
* `noTimeoutSteps` - an array of steps with no timeout. Default:
777
+
778
+
* `amOnPage`
779
+
* `wait*`
880
780
881
781
you could set your own noTimeoutSteps which would replace the default one.
0 commit comments