codeceptjs 4.0.6 → 4.0.7
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/lib/command/init.js +3 -1
- package/package.json +2 -4
package/lib/command/init.js
CHANGED
|
@@ -206,7 +206,7 @@ export default async function (initPath, options = {}) {
|
|
|
206
206
|
const stepFile = `./steps_file.${extension}`
|
|
207
207
|
fs.writeFileSync(path.join(testsPath, stepFile), extension === 'ts' ? defaultActorTs : defaultActor)
|
|
208
208
|
|
|
209
|
-
config.include = { I: isTypeScript ? './steps_file' : stepFile }
|
|
209
|
+
config.include = { I: isTypeScript ? './steps_file.ts' : stepFile }
|
|
210
210
|
|
|
211
211
|
print(`Steps file created at ${stepFile}`)
|
|
212
212
|
|
|
@@ -317,6 +317,8 @@ export default async function (initPath, options = {}) {
|
|
|
317
317
|
return
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
if (process.env.CODECEPT_TEST) return
|
|
321
|
+
|
|
320
322
|
const generatedTest = generateTest(testsPath)
|
|
321
323
|
if (!generatedTest) return
|
|
322
324
|
generatedTest.then(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeceptjs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Supercharged End 2 End Testing Framework for NodeJS",
|
|
6
6
|
"keywords": [
|
|
@@ -137,11 +137,9 @@
|
|
|
137
137
|
"xpath": "0.0.34",
|
|
138
138
|
"zod": "^4.1.11"
|
|
139
139
|
},
|
|
140
|
-
"optionalDependencies": {
|
|
141
|
-
"@codeceptjs/detox-helper": "1.1.14"
|
|
142
|
-
},
|
|
143
140
|
"devDependencies": {
|
|
144
141
|
"@apollo/server": "^5",
|
|
142
|
+
"@codeceptjs/detox-helper": "1.1.14",
|
|
145
143
|
"@codeceptjs/expect-helper": "^4.0.0-beta.5",
|
|
146
144
|
"@codeceptjs/mock-request": "0.3.1",
|
|
147
145
|
"@eslint/eslintrc": "3.3.3",
|