MCPcopy
hub / github.com/jestjs/jest / run

Method run

packages/jest-core/src/plugins/TestPathPattern.ts:40–64  ·  view source on GitHub ↗
(
    globalConfig: Config.GlobalConfig,
    updateConfigAndRun: UpdateConfigCallback,
  )

Source from the content-addressed store, hash-verified

38 }
39
40 override run(
41 globalConfig: Config.GlobalConfig,
42 updateConfigAndRun: UpdateConfigCallback,
43 ): Promise<void> {
44 return new Promise((resolve, reject) => {
45 const testPathPatternPrompt = new TestPathPatternPrompt(
46 this._stdout,
47 this._prompt,
48 );
49
50 testPathPatternPrompt.run(
51 (value: string) => {
52 updateConfigAndRun({
53 mode: 'watch',
54 testPathPatterns: [value],
55 });
56 resolve();
57 },
58 reject,
59 {
60 header: activeFilters(globalConfig),
61 },
62 );
63 });
64 }
65}
66
67export default TestPathPatternPlugin;

Callers

nothing calls this directly

Calls 3

updateConfigAndRunFunction · 0.85
activeFiltersFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected