Closed Jarred-Sumner closed 2 weeks ago
β @Jarred-Sumner, your commit has failing tests :(
test/js/bun/http/serve.test.ts
2 failingtest/cli/install/registry/bun-install-registry.test.ts
2 failingtest/js/bun/http/serve.test.ts
1 failingtest/js/bun/http/serve.test.ts
1 failingtest/js/bun/test/test-test.test.ts
1 failingtest/cli/install/bunx.test.ts
4 failingtest/integration/next-pages/test/dev-server-ssr-100.test.ts
1 failingtest/integration/next-pages/test/dev-server.test.ts
1 failingtest/integration/next-pages/test/next-build.test.ts
1 failingtest/js/bun/shell/bunshell.test.ts
1 failingtest/js/node/dns/node-dns.test.js
2 failingtest/js/node/process/process.test.js
2 failingtest/cli/install/bunx.test.ts
1 failingtest/cli/install/migration/migrate.test.ts
1 failingtest/cli/install/registry/bun-install-registry.test.ts
SIGTERMtest/integration/next-pages/test/dev-server-ssr-100.test.ts
1 failingtest/integration/next-pages/test/dev-server.test.ts
1 failingtest/integration/next-pages/test/next-build.test.ts
1 failingtest/js/bun/shell/bunshell.test.ts
1 failingtest/js/node/dns/node-dns.test.js
2 failingtest/js/node/process/process.test.js
2 failingmanually tested
What does this PR do?
Fix
BUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD
env var so that it handles more ways to say false. Any value which is not a falsy value makes it set to true, if it is setFor example:
BUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD=123 bun --watch src/server.ts
will disable clearing the screenBUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD=0 bun --watch src/server.ts
will enable clearing the screenBUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD= bun --watch src/server.ts
will enable clearing the screenFixes https://github.com/oven-sh/bun/issues/10725
How did you verify your code works?
Did not test it.