fix(nextjs): schema type for unitTestRunner for library (#26824)
## Current Behavior The [docs](https://nx.dev/nx-api/next/generators/library#unittestrunner) say that you can use vitest as a unitTestRunner option. It also worked when I tested with the following command: ```sh nx g @nx/next:library shared --dir=modules/shared --style none --dry-run --projectNameAndRootFormat as-provided --component false --unitTestRunner vitest ``` But types say otherwise:  ## Expected Behavior Types will allow 'vitest' option for a unitTestRunner ## Related Issue(s) none Co-authored-by: Emily Xiong <xiongemi@gmail.com>
This commit is contained in:
parent
0f3120712f
commit
73f12a322d
@ -13,7 +13,7 @@ export interface Schema {
|
||||
pascalCaseFiles?: boolean;
|
||||
routing?: boolean;
|
||||
appProject?: string;
|
||||
unitTestRunner: 'jest' | 'none';
|
||||
unitTestRunner: 'jest' | 'vitest' | 'none';
|
||||
linter: Linter | LinterType;
|
||||
component?: boolean;
|
||||
publishable?: boolean;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user