From 214c6a317581f2c678ddd003e8ab9fdef484013c Mon Sep 17 00:00:00 2001 From: Jonathan Cammisuli Date: Fri, 2 Dec 2022 12:15:05 -0500 Subject: [PATCH] fix(testing): generate appropriate files when unitTestRunner is vitest without specifying vite as the bundler (#13594) --- packages/react/src/generators/library/lib/create-files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/generators/library/lib/create-files.ts b/packages/react/src/generators/library/lib/create-files.ts index 9c6ece6c78323..b9f4830d201c8 100644 --- a/packages/react/src/generators/library/lib/create-files.ts +++ b/packages/react/src/generators/library/lib/create-files.ts @@ -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'),