From f7d01e2c7fe94aab31b4dd66c8049d6cc4a6e6d8 Mon Sep 17 00:00:00 2001 From: Jaromir Obr Date: Sun, 28 May 2023 23:15:35 +0200 Subject: [PATCH] Fixed creating of JavaScript test using "codeceptjs gt" (#3611) --- lib/command/generate.js | 1 + 1 file changed, 1 insertion(+) 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;