Skip to content

Commit

Permalink
Make per-pm folders
Browse files Browse the repository at this point in the history
  • Loading branch information
jculvey committed Oct 13, 2023
1 parent 4a05670 commit ebb1487
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Empty file.
1 change: 0 additions & 1 deletion packages/create-cloudflare/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ node_modules
/dist
create-cloudflare-*.tgz
/.e2e-logs/*
!/.e2e-logs/.gitkeep

.DS_Store

Expand Down
4 changes: 2 additions & 2 deletions packages/create-cloudflare/e2e-tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const recreateLogFolder = (suite: Suite) => {
force: true,
});

mkdirSync(getLogPath(suite));
mkdirSync(getLogPath(suite), { recursive: true });
};

const getLogPath = (suite: Suite) => {
Expand All @@ -155,7 +155,7 @@ const getLogPath = (suite: Suite) => {
? basename(file.name).replace(".test.ts", "")
: "unknown";

return join("./.e2e-logs/", suiteFilename);
return join("./.e2e-logs/", process.env.TEST_PM as string, suiteFilename);
};

const normalizeTestName = (ctx: TestContext) => {
Expand Down

0 comments on commit ebb1487

Please sign in to comment.