aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-internal-test/scripts/run-ecosystem-tests.ts
diff options
context:
space:
mode:
authorGravatar Ashcon Partovi <ashcon@partovi.net> 2023-05-23 13:39:43 -0700
committerGravatar Ashcon Partovi <ashcon@partovi.net> 2023-05-23 13:39:58 -0700
commit2a669a657a422c8fe7c621284fde51419531db8f (patch)
tree75dc31ea3c3f767acfbdb847de5016193f3e9b05 /packages/bun-internal-test/scripts/run-ecosystem-tests.ts
parentf71eb39b14b0177c178d68d86e1ba11f227044af (diff)
downloadbun-2a669a657a422c8fe7c621284fde51419531db8f.tar.gz
bun-2a669a657a422c8fe7c621284fde51419531db8f.tar.zst
bun-2a669a657a422c8fe7c621284fde51419531db8f.zip
Support test.todo() in ecosystem runner
Diffstat (limited to 'packages/bun-internal-test/scripts/run-ecosystem-tests.ts')
-rw-r--r--packages/bun-internal-test/scripts/run-ecosystem-tests.ts21
1 files changed, 4 insertions, 17 deletions
diff --git a/packages/bun-internal-test/scripts/run-ecosystem-tests.ts b/packages/bun-internal-test/scripts/run-ecosystem-tests.ts
index fdbe89b80..0b604f414 100644
--- a/packages/bun-internal-test/scripts/run-ecosystem-tests.ts
+++ b/packages/bun-internal-test/scripts/run-ecosystem-tests.ts
@@ -60,7 +60,7 @@ for (const pkg of packagesList) {
result = value;
break;
} else if (filter || value.summary.fail) {
- printTest(value)
+ printTest(value);
}
}
if (!summaryPath) {
@@ -108,12 +108,7 @@ for (const pkg of packagesList) {
}
if (summaryPath) {
- let html = summary
- + table(
- ["Package", "Status", "Passed", "Failed", "Skipped", "Duration"],
- summaries,
- )
- + errors;
+ let html = summary + table(["Package", "Status", "Passed", "Failed", "Skipped", "Duration"], summaries) + errors;
appendFileSync(summaryPath, html, "utf-8");
}
@@ -162,18 +157,10 @@ function gitClone(pkg: Package): string {
const path = resolve(`packages/${name}`);
if (!existsSync(path)) {
const url = `https://github.com/${repository.github}.git`;
- spawnSync("git", [
- "clone",
- "--single-branch",
- "--depth=1",
- url,
- path
- ], {
+ spawnSync("git", ["clone", "--single-branch", "--depth=1", url, path], {
stdio: "inherit",
});
- spawnSync("bun", [
- "install"
- ], {
+ spawnSync("bun", ["install"], {
cwd: path,
stdio: "inherit",
});