In October 2025, a MySQL2 contributor reported that a test of the JavaScript database driver failed and kept running. The test expected a database named test. The contributor had named it nodetest, and when the assertion failed, the code could skip the step that closed its connection. An open socket could keep the test process alive. The contributor asked Weslley Araújo, a MySQL2 co-maintainer and the creator of its test runner, whether the runner could force an exit. Araújo argued that doing so could hide the same kind of leak in a test whose assertions passed. [1] [2]

Araújo had built Poku around the idea that a test could run much like an ordinary script. That choice gave him a way to run the same files on Node.js, Bun, and Deno. It also made the life of the script part of what a test run could reveal. For a library that promises to work on several runtimes, a shared test suite is most useful when it asks the same questions of each runtime and leaves differences in execution visible.

A test file that can run on its own

The project’s changelog dates Poku 1.0.0 to February 13, 2024. The first release documented support for Node.js and ran test files in separate processes. Two days later, version 1.1.0 added Bun and Deno support. By early March, the project had added Brazilian Portuguese documentation. Araújo, an open-source developer based in São Paulo, later described a teaching problem behind the design. At Node Congress in 2026, he used the example of two asynchronous operations that need to run in order. A developer who already understands await should be able to use it to express the sequence in a test, too. [2] [3] [4] [5]

In Poku, a file can import an assertion from the package and call it at the top level. The assertion can produce a result in the report without being wrapped in a named test. Larger files can opt into helpers such as describe and it. The beginner can start with a comparison, and a maintainer can launch an individual test file through the runtime while investigating a failure. In the default isolated mode documented for Poku 4, the runner starts a child process per test file and reports the results. Each file gets its own global variables, module cache, and exit status. A test that changes a process environment variable therefore leaves other test files’ process environments alone. [5] [6] [7]

That division gives the runner and the runtime different jobs. Poku can coordinate which files run and how their results are presented. The runtime still loads the modules and executes the JavaScript. In Poku’s documented setup, TypeScript tests on Node.js use tsx, while Bun and Deno can run them directly. Keeping separate jobs in continuous integration makes a failure attributable to a particular run. A job can still fail before an assertion executes because of differences in loading, permissions, or setup. [7] [8]

Where a process boundary stops

There are reasons to use a runtime’s built-in runner. Node.js can already execute each test file in its own child process. Deno’s built-in runner can check, when configured to do so, whether a test left I/O resources open. That check can make a leak visible even when the assertions passed. Poku’s appeal for a library like MySQL2 is the ability to use one set of test files and one runner across all three runtimes. The choice depends on whether the team needs a common way to check its library’s behavior, a diagnostic specific to one runtime, or both. [7] [9] [10]

The follow-up to the MySQL2 hang illustrates a separate limit. Araújo’s February 2026 pull request separated connection setup and cleanup from assertions in affected tests and made changes to prepare the suite for concurrent runs. Separate JavaScript processes can still use the same database server. If two files update shared server state at the same time, each can change what the other sees. The driver’s version 3.24.6 test configuration runs unit and integration files concurrently and puts the global tests in a sequential group that runs only when the database user has the necessary privileges. Its Docker Compose file defines separate Node.js, Bun, and Deno services, each configured to wait for a MySQL server before running tests. [1] [11] [12] [13]

Even with the same files, a passing run covers the conditions the project chose. MySQL2’s Deno test configuration grants all Deno permissions. An application that grants only specific access has a different set of conditions to test. The column-inspection test that prompted the original report now takes its expected database name from the configuration. When that assertion runs, it checks that the driver reported the database the test was set up to use. Poku makes it possible to ask for that evidence from three runtimes using the same assertion. For the maintainer reading the results, the value of the comparison still depends on knowing which tests actually ran and under what conditions. [13] [14] [15]

Editorial disclosure. OpenAI Codex assisted with source research, analysis, and drafting.

References

  1. MySQL2 contributors. October 2025 to February 2026. Tests can hang indefinitely when connection resources aren’t cleaned up after assertion failures.
  2. Weslley Araújo. Accessed December 2, 2026. GitHub profile.
  3. Poku contributors. Version 2.7.1, October 27, 2024. Poku changelog.
  4. Poku contributors. February 13, 2024. Poku v1.0.0 release notes.
  5. Weslley Araújo. Node Congress, March 26, 2026. Creating a Test Runner: What Happens Behind the Tests?.
  6. Poku contributors. Version 4 documentation, accessed December 2, 2026. Philosophy.
  7. Poku contributors. Version 4 documentation, accessed December 2, 2026. Process isolation.
  8. Poku contributors. Version 4 documentation, accessed December 2, 2026. Testing across platforms.
  9. Node.js project. Version 24 documentation, accessed December 2, 2026. Test runner execution model.
  10. Deno project. Accessed December 2, 2026. Test sanitizers.
  11. Weslley Araújo. MySQL2 pull request 4094, merged February 19, 2026. CI support for parallel runs.
  12. MySQL2 contributors. Version 3.24.6. Docker Compose configuration for tests.
  13. MySQL2 contributors. Version 3.24.6. Poku test configuration.
  14. Deno project. Accessed December 2, 2026. Security and permissions.
  15. MySQL2 contributors. Version 3.24.6. Column-inspection integration test.