drashland / rhum

A test double library
https://drash.land/rhum
MIT License
92 stars 6 forks source link

feat(v2): support node #157

Closed crookse closed 2 years ago

crookse commented 2 years ago

Closes #155

Hella lines of code added, but like 90+% of them are tests for cjs and esm builds.

Summary

How to build and test

  1. Run yarn install

  2. Run yarn build This will run console/build_esm_lib, which will create a temporary directory under tmp/conversion_workspace. It will use this workspace to make a copy of the source code, remove .ts extensions, and run the typescript compiler against the modified source code using either tsconfig.cjs.json or tsconfig.esm.json depending on what build is running.

  3. Run yarn test This will run jest against tests/cjs and tests/esm. All tests should pass. The tests are basically copies of the tests/deno tests, but modified to work with cjs and esm. The esm tests use typescript.

crookse commented 2 years ago

browser

yea idk if there's a use case for it. not going to mention it in the release. only going to mention that node is supported