2020-05-05 articles Node v14.2.0(현재 버전) 작성자: Michaël Zasso 원문: Node v14.2.0 (Current) 번역: marocchino 1234567891011121314151617181920const assert = require('assert');const tracker = new assert.CallTracker();function func() {}const callsfunc = tracker.calls(func);console.log(tracker.report());/*[ { message: 'Expected the func function to be executed 1 time(s) but was executed 0 time(s).', actual: 0, expected: 1, operator: 'func', stack: Error ... }]*/ ConorDavenport가 기여하였습니다.#31982.