Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix: keep Bun tests from loading Playwright specs

tianma-ifff7d1dd28643
diff --git a/bunfig.toml b/bunfig.toml
new file mode 100644
index 00000000..f04181df
--- /dev/null
+++ b/bunfig.toml
@@ -0,0 +1,2 @@
+[test]
+pathIgnorePatterns = ["tests/e2e/**"]
diff --git a/tests/deployment-entrypoints.test.ts b/tests/deployment-entrypoints.test.ts
index 4c217fe8..2185467f 100644
--- a/tests/deployment-entrypoints.test.ts
+++ b/tests/deployment-entrypoints.test.ts
@@ -178,6 +178,7 @@ describe("Cloudflare deployment entrypoints", () => {
test("deployed repositories receive guarded daily upstream updates", () => {
const workflow = readRepositoryFile(".github/workflows/sync-edgeever-upstream.yml");
+ const bunConfig = readRepositoryFile("bunfig.toml");
const packageJson = JSON.parse(readRepositoryFile("package.json"));
const scripts = packageJson.scripts as Record<string, string>;
@@ -190,6 +191,7 @@ describe("Cloudflare deployment entrypoints", () => {
expect(workflow).toContain("edge)");
expect(workflow).toContain("force_redeploy");
expect(workflow).toContain("bun run db:migrate:local");
+ expect(bunConfig).toContain('pathIgnorePatterns = ["tests/e2e/**"]');
expect(scripts.test).toBe("bun test --path-ignore-patterns='tests/e2e/**'");
expect(workflow).toContain(scripts.test);
expect(workflow.match(/if: steps\.upstream\.outputs\.align_mode == 'merge'/g)).toHaveLength(2);