11 lines
236 B
TypeScript
11 lines
236 B
TypeScript
import type { InitGeneratorOptions } from '../schema';
|
|
|
|
export function normalizeOptions(
|
|
options: InitGeneratorOptions
|
|
): InitGeneratorOptions {
|
|
return {
|
|
...options,
|
|
unitTestRunner: options.unitTestRunner ?? 'jest',
|
|
};
|
|
}
|