diff --git a/lib/command/generate.js b/lib/command/generate.js index d735e1774..fd86c82bd 100644 --- a/lib/command/generate.js +++ b/lib/command/generate.js @@ -24,6 +24,7 @@ Scenario('test something', async ({ {{actor}} }) => { // generates empty test module.exports.test = function (genPath) { const testsPath = getTestRoot(genPath); + global.codecept_dir = testsPath; const config = getConfig(testsPath); if (!config) return;