Skip to content

Commit

Permalink
Removing project cleanup after e2e runs -- failing and will be fixed …
Browse files Browse the repository at this point in the history
…in another pr
  • Loading branch information
jculvey committed Aug 10, 2023
1 parent 6cf281b commit 2ea5f12
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/create-cloudflare/e2e-tests/pages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { existsSync, mkdtempSync, realpathSync, rmSync } from "fs";
import crypto from "node:crypto";
import { tmpdir } from "os";
import { join } from "path";
import spawn from "cross-spawn";
import { FrameworkMap } from "frameworks/index";
import { readJSON } from "helpers/files";
import { fetch } from "undici";
Expand Down Expand Up @@ -39,29 +38,10 @@ describe(`E2E: Web frameworks`, () => {
afterEach((ctx) => {
const framework = ctx.meta.name;
const projectPath = getProjectPath(framework);
const projectName = getProjectName(framework);

if (existsSync(projectPath)) {
rmSync(projectPath, { recursive: true });
}

try {
const { output } = spawn.sync("npx", [
"wrangler",
"pages",
"project",
"delete",
"-y",
projectName,
]);

if (!output.toString().includes(`Successfully deleted ${projectName}`)) {
console.error(output.toString());
}
} catch (error) {
console.error(`Failed to cleanup project: ${projectName}`);
console.error(error);
}
});

const runCli = async (
Expand Down

0 comments on commit 2ea5f12

Please sign in to comment.