Skip to content

Commit f7d01e2

Browse files
authored
Fixed creating of JavaScript test using "codeceptjs gt" (#3611)
1 parent 5b8c3b7 commit f7d01e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lib/command/generate.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Scenario('test something', async ({ {{actor}} }) => {
2424
// generates empty test
2525
module.exports.test = function (genPath) {
2626
const testsPath = getTestRoot(genPath);
27+
global.codecept_dir = testsPath;
2728
const config = getConfig(testsPath);
2829
if (!config) return;
2930

0 commit comments

Comments
 (0)