mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-01-02 21:36:56 +08:00
16 lines
324 B
TypeScript
16 lines
324 B
TypeScript
import { runCLI } from 'jest';
|
|
import { setNodeEnv } from '../common';
|
|
import { CWD, JEST_CONFIG_FILE } from '../common/constant';
|
|
|
|
export function test(command: any) {
|
|
setNodeEnv('test');
|
|
|
|
const config = {
|
|
rootDir: CWD,
|
|
watch: command.watch,
|
|
config: JEST_CONFIG_FILE
|
|
} as any;
|
|
|
|
runCLI(config, [CWD]);
|
|
}
|