Skip to content

Commit

Permalink
Merge pull request #79 from M365Bass/e2e-hierarchy
Browse files Browse the repository at this point in the history
Hierarchy within e2e tests
  • Loading branch information
BassemNKhalil authored Nov 14, 2023
2 parents 850bad0 + 4564050 commit 0755846
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs");
const wpFolderPath = require("../../Utils/folderPaths").wpFolderPath();
const fastServeCommand = require("../../Commands/fastServe");
const wpFolderPath = require("../../../Utils/folderPaths").wpFolderPath();
const fastServeCommand = require("../../../Commands/fastServe");
const resolve = require("path").resolve;

beforeAll(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const resolve = require("path").resolve;
const wpFolderPath = require("../../Utils/folderPaths").wpFolderPath();
const gitInitCommand = require("../../Commands/gitInit");
const wpFolderPath = require("../../../Utils/folderPaths").wpFolderPath();
const gitInitCommand = require("../../../Commands/gitInit");

beforeAll(() => {
gitInitCommand.gitInit(wpFolderPath);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const join = require("path").join;
const wpFolderPath = require("../../Utils/folderPaths").wpFolderPath();
const npmVersionCommand = require("../../Commands/npmVersion");
const wpFolderPath = require("../../../Utils/folderPaths").wpFolderPath();
const npmVersionCommand = require("../../../Commands/npmVersion");

const gulpfilePath = join(wpFolderPath, "gulpfile.js");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const fs = require("fs");
const join = require("path").join;
const wpFolderPath = require("../../Utils/folderPaths").wpFolderPath();
const parentFolderPath = require("../../Utils/folderPaths").parentFolderPath();
const runPrettierCommand = require("../../Commands/runPrettier");
const wpFolderPath = require("../../../Utils/folderPaths").wpFolderPath();
const parentFolderPath =
require("../../../Utils/folderPaths").parentFolderPath();
const runPrettierCommand = require("../../../Commands/runPrettier");

const parentWP_filePath = join(
wpFolderPath,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const join = require("path").join;
const wpFolderPath = require("../../Utils/folderPaths").wpFolderPath();
const sortPackageCommand = require("../../Commands/sortPackage");
const wpFolderPath = require("../../../Utils/folderPaths").wpFolderPath();
const sortPackageCommand = require("../../../Commands/sortPackage");
const sortObject = require("sort-object-keys");

const packageJSON_filePath = join(wpFolderPath, "package.json");
Expand Down

1 comment on commit 0755846

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 100% 124/124
🟢 Branches 100% 10/10
🟢 Functions 100% 13/13
🟢 Lines 100% 124/124

Test suite run success

26 tests passing in 11 suites.

Report generated by 🧪jest coverage report action from 0755846

Please sign in to comment.