Testing - tetloose/tetloose-wp GitHub Wiki

Vitest* handles the tests, it's built on jest and much nicer to work with. Any file with *.test.ts will be picked up in the testing environment.

It's recommended to run Vitest along side the dev environment yarn test. This will monitor tests and error if tests fail. Tests will fail on yarn gen:component but it will help you fix the issues mainly adding the module name to modules.config.ts.

Navigation

<< BACK TO TYPESCRIPT