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

Method add

examples/typescript/Memory.ts:4–8  ·  view source on GitHub ↗
(entry: number)

Source from the content-addressed store, hash-verified

2 current = 0;
3
4 add(entry: number) {
5 this.current += entry;
6
7 return this.current;
8 }
9
10 subtract(entry: number) {
11 this.current -= entry;

Callers 7

calc.tsFile · 0.45
resolveRunFunction · 0.45
forceRunFunction · 0.45
runTestFunction · 0.45
waitUntilFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected