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
I am trying to run my integration tests with the command dotenv -- codeceptjs run --features --steps
What do you get instead?
I am getting error
Require stack:
- myproject/node_modules/codeceptjs/lib/helper/JSONResponse.js
- myproject/node_modules/codeceptjs/lib/container.js
- myproject/node_modules/codeceptjs/lib/codecept.js
- myproject/node_modules/codeceptjs/bin/codecept.js
Error: Cannot find module 'joi'
Require stack:
- myproject/node_modules/codeceptjs/lib/helper/JSONResponse.js
- myproject/node_modules/codeceptjs/lib/container.js
- myproject/node_modules/codeceptjs/lib/codecept.js
- myproject/node_modules/codeceptjs/bin/codecept.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (myproject/node_modules/codeceptjs/lib/helper/JSONResponse.js:10:13)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
Error:
at createHelpers (myproject/node_modules/codeceptjs/lib/container.js:194:13)
at Container.create (myproject/node_modules/codeceptjs/lib/container.js:44:25)
at Codecept.init (myproject/node_modules/codeceptjs/lib/codecept.js:57:15)
at module.exports (myproject/node_modules/codeceptjs/lib/command/run.js:28:14)
at Command.<anonymous> (myproject/node_modules/codeceptjs/bin/codecept.js:9:11)
at Command.listener [as _actionHandler] (myproject/node_modules/commander/lib/command.js:494:17)
at myproject/node_modules/commander/lib/command.js:1296:65
at Command._chainOrCall (myproject/node_modules/commander/lib/command.js:1193:12)
at Command._parseCommand (myproject/node_modules/commander/lib/command.js:1296:27)
at myproject/node_modules/commander/lib/command.js:1082:27
npm ERR! Lifecycle script `test:integration` failed with error:
npm ERR! Error: command failed
Provide console output if related. Use --verbose mode for more details.
# paste output here
Provide test source code if related
// paste test
Details
CodeceptJS version: 3.5.13
NodeJS Version: v20.11.0
Operating System: MacOS 14.3.1 (23D60) Chip: Apple M1
puppeteer || webdriverio || testcafe version (if related)
What are you trying to achieve?
I am trying to run my integration tests with the command
dotenv -- codeceptjs run --features --steps
What do you get instead?
I am getting error
# paste output here
// paste test
Details
3.5.13
v20.11.0
The text was updated successfully, but these errors were encountered: