feat(cli): add jest init file
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import { runCLI } from 'jest';
|
||||
import { setNodeEnv } from '../common';
|
||||
import { CWD, JEST_CONFIG_FILE } from '../common/constant';
|
||||
import { genPackageEntry } from '../compiler/gen-package-entry';
|
||||
import { CWD, JEST_CONFIG_FILE, PACKAGE_ENTRY_FILE } from '../common/constant';
|
||||
|
||||
export function test(command: any) {
|
||||
setNodeEnv('test');
|
||||
|
||||
genPackageEntry({
|
||||
outputPath: PACKAGE_ENTRY_FILE
|
||||
});
|
||||
|
||||
const config = {
|
||||
rootDir: CWD,
|
||||
watch: command.watch,
|
||||
|
||||
Reference in New Issue
Block a user