x-stend / x

`x$` is a highly flexible and extendable utility library for JavaScript and TypeScript, designed to streamline the integration and extension of various utility libraries like lodash, moment, and ramda. With `x$`, developers can easily create custom higher-order functions, ensuring adaptability and maintainability in their codebase.
MIT License
0 stars 0 forks source link

Setup unit testing #6

Closed cstroliadavis closed 5 months ago

cstroliadavis commented 5 months ago

Description:

Implement ~Node's built-in~ the vitest testing framework for the project to facilitate unit testing. This setup will ensure that the library and its components are thoroughly tested.

Acceptance Criteria:

  1. ~Node’s~ Vitest testing framework is integrated into the project.
  2. Basic test cases are written for the initial codebase.
  3. Documentation is updated to include instructions on running tests.
cstroliadavis commented 5 months ago

Need to change this. It did not occur to me when making this that node's built in coverage is designed for JS and does not have TS in mind. As a result, it may fail in some things and if we want coverage it would not work properly.

As a result, I will change to vitest for testing, as that can be used for typescript.