Skip to content

Commit

Permalink
Fixed creating of JavaScript test using "codeceptjs gt" (#3611)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirao committed May 28, 2023
1 parent 5b8c3b7 commit f7d01e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/command/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f7d01e2

Please sign in to comment.