This library contains test setup.
More on this subject as well as all the testing strategy principles can be found on the GitHub wiki.
See @code-pushup/test-setup-config docs on how to use our Vitest config factory.
In this library you can find all files that can be used in setupFiles property of vitest.config.(unit|int|e2e).ts files. Currently include:
- console mocking
- file system mocking
portal-clientmocking- git mocking
Additionally, you may find helper functions for:
- setting up and tearing down a testing folder
- resetting mocks