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

Method add

packages/jest-reporters/src/Status.ts:41–49  ·  view source on GitHub ↗
(testPath: string, config: Config.ProjectConfig)

Source from the content-addressed store, hash-verified

39 }
40
41 add(testPath: string, config: Config.ProjectConfig) {
42 const index = this._array.indexOf(null);
43 const record = {config, testPath};
44 if (index === -1) {
45 this._array.push(record);
46 } else {
47 this._array[index] = record;
48 }
49 }
50
51 delete(testPath: string) {
52 const record = this._array.find(

Callers 10

validateImportAttributesFunction · 0.45
addOnGenerateMockMethod · 0.45
getExportsOfMethod · 0.45
__wrapStdioMethod · 0.45
testStartedMethod · 0.45
testModesFunction · 0.45
collectModulesMethod · 0.45

Calls

no outgoing calls

Tested by 1

testModesFunction · 0.36