endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
788 stars 70 forks source link

test(daemon): Refactor daemon test suite #2170

Closed rekmarks closed 4 months ago

rekmarks commented 4 months ago

Fixes #2125

Refactors test-endo.js by introducing utilities to absorb the necessary boilerplate to get from an empty state to a reference to a live endo host. Also addresses #2125 by ensuring that test teardown will always run, even in the case of test failures. There should no longer be any dangling node processes after running yarn test, and it may even be possible to forego the use of test:clean and its rm -rf /tmp prelude in the general case.