Skip to content

jpshack-at-palomar/oclif-with-vitest

Repository files navigation

Sample Oclif + Vitest

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 configuration
  • package.json - The test script to run the tests and note dependencies.
  • src/commands/hello.ts - The command implementation
  • test/hello.test.ts - The test for the command
  • test/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.

About

Sample Repo Showing how vitest can be used with Oclif

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published