Skip to content

Commit

Permalink
fix(testing): generate appropriate files when unitTestRunner is vites…
Browse files Browse the repository at this point in the history
…t without specifying vite as the bundler (#13594)
  • Loading branch information
Cammisuli authored Dec 2, 2022
1 parent 5b7dba1 commit 214c6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/generators/library/lib/create-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function createFiles(host: Tree, options: NormalizedSchema) {
substitutions
);

if (options.bundler === 'vite') {
if (options.bundler === 'vite' || options.unitTestRunner === 'vitest') {
generateFiles(
host,
joinPathFragments(__dirname, '../files/vite'),
Expand Down

0 comments on commit 214c6a3

Please sign in to comment.