This is an example of an Oclif CLI generated with oclif generate and then
modified to use Vitest for testing.
See the following files:
vitest.config.ts- The Vitest configurationpackage.json- Thetestscript to run the tests and note dependencies.src/commands/hello.ts- The command implementationtest/hello.test.ts- The test for the commandtest/tsconfig.json- The test configuration
Use the following commands to run the tests:
npm install to install the dependencies.
npm test to run the tests.