codeceptjs 3.7.3 → 3.7.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "3.7.3",
3
+ "version": "3.7.5-beta.1",
4
4
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
5
5
  "keywords": [
6
6
  "acceptance",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "repository": "Codeception/codeceptjs",
44
44
  "scripts": {
45
- "json-server": "json-server test/data/rest/db.json --host 0.0.0.0 -p 8010 --watch -m test/data/rest/headers.js",
45
+ "test-server": "node bin/test-server.js test/data/rest/db.json --host 0.0.0.0 -p 8010",
46
46
  "json-server:graphql": "node test/data/graphql/index.js",
47
47
  "lint": "eslint bin/ examples/ lib/ test/ translations/ runok.js",
48
48
  "lint-fix": "eslint bin/ examples/ lib/ test/ translations/ runok.js --fix",
@@ -75,17 +75,18 @@
75
75
  "publish-beta": "./runok.js publish:next-beta-version"
76
76
  },
77
77
  "dependencies": {
78
- "@codeceptjs/configure": "1.0.3",
78
+ "@codeceptjs/configure": "1.0.6",
79
79
  "@codeceptjs/helper": "2.0.4",
80
80
  "@cucumber/cucumber-expressions": "18",
81
- "@cucumber/gherkin": "32",
81
+ "@cucumber/gherkin": "32.1.2",
82
82
  "@cucumber/messages": "27.2.0",
83
83
  "@xmldom/xmldom": "0.9.8",
84
84
  "acorn": "8.14.1",
85
85
  "arrify": "3.0.0",
86
- "axios": "1.8.3",
86
+ "axios": "1.11.0",
87
87
  "chalk": "4.1.2",
88
88
  "cheerio": "^1.0.0",
89
+ "chokidar": "^4.0.3",
89
90
  "commander": "11.1.0",
90
91
  "cross-spawn": "7.0.6",
91
92
  "css-to-xpath": "0.1.0",
@@ -95,83 +96,86 @@
95
96
  "figures": "3.2.0",
96
97
  "fn-args": "4.0.0",
97
98
  "fs-extra": "11.3.0",
98
- "glob": ">=9.0.0 <12",
99
99
  "fuse.js": "^7.0.0",
100
+ "glob": ">=9.0.0 <12",
100
101
  "html-minifier-terser": "7.2.0",
101
- "inquirer": "8.2.6",
102
+ "inquirer": "^8.2.7",
102
103
  "invisi-data": "^1.0.0",
103
104
  "joi": "17.13.3",
104
105
  "js-beautify": "1.15.4",
105
106
  "lodash.clonedeep": "4.5.0",
106
107
  "lodash.merge": "4.6.2",
108
+ "lodash.shuffle": "4.2.0",
107
109
  "mkdirp": "3.0.1",
108
- "mocha": "11.1.0",
109
- "monocart-coverage-reports": "2.12.3",
110
+ "mocha": "11.6.0",
111
+ "monocart-coverage-reports": "2.12.6",
110
112
  "ms": "2.1.3",
113
+ "multer": "^2.0.2",
111
114
  "ora-classic": "5.4.2",
112
115
  "parse-function": "5.6.10",
113
- "parse5": "7.2.1",
116
+ "parse5": "7.3.0",
114
117
  "promise-retry": "1.1.1",
115
118
  "resq": "1.11.0",
116
119
  "sprintf-js": "1.1.3",
117
120
  "uuid": "11.1.0"
118
121
  },
119
122
  "optionalDependencies": {
120
- "@codeceptjs/detox-helper": "1.1.7"
123
+ "@codeceptjs/detox-helper": "1.1.8"
121
124
  },
122
125
  "devDependencies": {
123
126
  "@apollo/server": "^4",
124
- "@codeceptjs/expect-helper": "^1.0.1",
127
+ "@codeceptjs/expect-helper": "^1.0.2",
125
128
  "@codeceptjs/mock-request": "0.3.1",
126
- "@eslint/eslintrc": "3.3.0",
127
- "@eslint/js": "9.22.0",
128
- "@faker-js/faker": "9.6.0",
129
+ "@eslint/eslintrc": "3.3.1",
130
+ "@eslint/js": "9.34.0",
131
+ "@faker-js/faker": "9.8.0",
129
132
  "@pollyjs/adapter-puppeteer": "6.0.6",
130
133
  "@pollyjs/core": "6.0.6",
131
- "@types/chai": "5.2.0",
134
+ "@types/chai": "5.2.2",
132
135
  "@types/inquirer": "9.0.7",
133
- "@types/node": "22.13.10",
134
- "@wdio/sauce-service": "9.12.0",
136
+ "@types/node": "24.0.10",
137
+ "@wdio/sauce-service": "9.12.5",
135
138
  "@wdio/selenium-standalone-service": "8.15.0",
136
- "@wdio/utils": "9.11.0",
139
+ "@wdio/utils": "9.15.0",
137
140
  "@xmldom/xmldom": "0.9.8",
138
141
  "chai": "^4.0.0",
139
142
  "chai-as-promised": "7.1.2",
140
143
  "chai-subset": "1.6.0",
141
144
  "documentation": "14.0.3",
142
- "electron": "35.0.1",
143
- "eslint": "^9.21.0",
144
- "eslint-plugin-import": "2.31.0",
145
- "eslint-plugin-mocha": "10.5.0",
146
- "expect": "29.7.0",
147
- "express": "4.21.2",
148
- "globals": "16.0.0",
149
- "graphql": "16.10.0",
145
+ "electron": "37.2.3",
146
+ "eslint": "^9.24.0",
147
+ "eslint-plugin-import": "2.32.0",
148
+ "eslint-plugin-mocha": "11.1.0",
149
+ "expect": "30.0.5",
150
+ "express": "^5.1.0",
151
+ "globals": "16.2.0",
152
+ "graphql": "16.11.0",
150
153
  "graphql-tag": "^2.12.6",
151
154
  "husky": "9.1.7",
152
155
  "inquirer-test": "2.0.1",
153
156
  "jsdoc": "^3.6.11",
154
157
  "jsdoc-typeof-plugin": "1.0.0",
155
158
  "json-server": "0.17.4",
156
- "playwright": "1.51.0",
159
+ "mochawesome": "^7.1.3",
160
+ "playwright": "1.54.1",
157
161
  "prettier": "^3.3.2",
158
- "puppeteer": "24.4.0",
162
+ "puppeteer": "24.15.0",
159
163
  "qrcode-terminal": "0.12.0",
160
164
  "rosie": "2.1.1",
161
165
  "runok": "0.9.3",
162
- "semver": "7.7.1",
163
- "sinon": "19.0.2",
166
+ "semver": "7.7.2",
167
+ "sinon": "21.0.0",
164
168
  "sinon-chai": "3.7.0",
165
169
  "testcafe": "3.7.2",
166
- "ts-morph": "25.0.1",
170
+ "ts-morph": "26.0.0",
167
171
  "ts-node": "10.9.2",
168
- "tsd": "^0.31.0",
172
+ "tsd": "^0.33.0",
169
173
  "tsd-jsdoc": "2.5.0",
170
- "typedoc": "0.28.0",
171
- "typedoc-plugin-markdown": "4.5.0",
172
- "typescript": "5.8.2",
174
+ "typedoc": "0.28.10",
175
+ "typedoc-plugin-markdown": "4.8.1",
176
+ "typescript": "5.8.3",
173
177
  "wdio-docker-service": "3.2.1",
174
- "webdriverio": "9.12.0",
178
+ "webdriverio": "9.12.5",
175
179
  "xml2js": "0.6.2",
176
180
  "xpath": "0.0.34"
177
181
  },
@@ -440,7 +440,7 @@ declare namespace CodeceptJS {
440
440
  interface IHook {}
441
441
  interface IScenario {}
442
442
  interface IFeature {
443
- (title: string): FeatureConfig
443
+ (title: string, opts?: { [key: string]: any }): FeatureConfig
444
444
  }
445
445
  interface CallbackOrder extends Array<any> {}
446
446
  interface SupportObject {
@@ -486,6 +486,7 @@ declare namespace CodeceptJS {
486
486
  todo: IScenario
487
487
  }
488
488
  interface Feature extends IFeature {
489
+ only: IFeature
489
490
  skip: IFeature
490
491
  }
491
492
  interface IData {
@@ -519,11 +520,17 @@ declare namespace CodeceptJS {
519
520
  }
520
521
  }
521
522
 
523
+ type TryTo = <T>(fn: () => Promise<T> | T) => Promise<T | false>;
524
+ type HopeThat = <T>(fn: () => Promise<T> | T) => Promise<T | false>;
525
+ type RetryTo = <T>(fn: () => Promise<T> | T, retries?: number) => Promise<T>;
526
+
527
+
522
528
  // Globals
523
529
  declare const codecept_dir: string
524
530
  declare const output_dir: string
525
- declare function tryTo(...fn): Promise<boolean>
526
- declare function retryTo(...fn): Promise<null>
531
+ declare const tryTo: TryTo;
532
+ declare const retryTo: RetryTo;
533
+ declare const hopeThat: HopeThat;
527
534
 
528
535
  declare const actor: CodeceptJS.actor
529
536
  declare const codecept_actor: CodeceptJS.actor
@@ -545,7 +552,7 @@ declare const Given: typeof CodeceptJS.addStep
545
552
  declare const When: typeof CodeceptJS.addStep
546
553
  declare const Then: typeof CodeceptJS.addStep
547
554
 
548
- declare const Feature: typeof CodeceptJS.Feature
555
+ declare const Feature: CodeceptJS.Feature
549
556
  declare const Scenario: CodeceptJS.Scenario
550
557
  declare const xScenario: CodeceptJS.IScenario
551
558
  declare const xFeature: CodeceptJS.IFeature
@@ -634,3 +641,9 @@ declare module 'codeceptjs' {
634
641
  declare module '@codeceptjs/helper' {
635
642
  export = CodeceptJS.Helper
636
643
  }
644
+
645
+ declare module 'codeceptjs/effects' {
646
+ export const tryTo: TryTo;
647
+ export const retryTo: RetryTo;
648
+ export const hopeThat: HopeThat;
649
+ }