Skip to content

Commit

Permalink
fix: default to vitest if no existing testing library
Browse files Browse the repository at this point in the history
  • Loading branch information
steve8708 committed Jun 12, 2024
1 parent 4eaa703 commit 1a71f6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/helpers/get-test-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export async function getTestCommand({
<package-json>
${packageJson}
</package-json>
If there are no testing libraryes in the package.json, \`npx vitest ...\` is a good option.
`,
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/interactive-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export async function interactiveMode(options: Partial<RunOptions>) {
</tests>`
: packageJsonContents
? dedent`
Here is the package.json file to help you know what testing library to use (if any, otherwise use the built-in nodejs testing tools):
Here is the package.json file to help you know what testing library to use (if any, otherwise vitest is a good option):
<package-json>
${packageJsonContents}
</package-json>
Expand Down

0 comments on commit 1a71f6a

Please sign in to comment.