Skip to content

feat: mock global vars

Compare
Choose a tag to compare
@iambumblehead iambumblehead released this 31 May 07:04
3fab421

This release adds a new feature: support for mocking global values like fetch, Date, setTimeout and others. The wiki will be updated with more details in the next day or so,

  • add initial support for the solution to "globalThis" mocks,
  • support injecting definitions into the mock import tree,
  • demonstrate mock setTimeout, fetch and Date scenarious at unit-tests
  • remove node 19 test job, update remaining jobs to use node 20