timkindberg / jest-when

Jest support for mock argument-matched return values.
MIT License
738 stars 39 forks source link

Whoaa512 calllines #20

Closed timkindberg closed 5 years ago

timkindberg commented 5 years ago

@Whoaa512 I wanted to add a little bit onto what you did. Here's the resulting test log output:

assert.equal(received, expected) or assert(received) 
Expected value to be equal to:
  "called mocks: 4"
Received:
  "called mocks: 2"

Message:
  Failed verifyAllWhenMocksCalled: 2 not called at:
  at Object.it (/Users/tim/projects/jest-when/src/when.test.js:113:53)
  at Object.it (/Users/tim/projects/jest-when/src/when.test.js:114:53)

...rest of the stack...
    at verifyAllWhenMocksCalled (/Users/tim/projects/jest-when/src/when.js:136:10)
    at Object.it (/Users/tim/projects/jest-when/src/when.test.js:119:7)
    at Object.asyncFn (/Users/tim/projects/jest-when/node_modules/jest-jasmine2/build/jasmine_async.js:82:37)
    at resolve (/Users/tim/projects/jest-when/node_modules/jest-jasmine2/build/queue_runner.js:52:12)
    at new Promise (<anonymous>)
    at mapper (/Users/tim/projects/jest-when/node_modules/jest-jasmine2/build/queue_runner.js:39:19)
    at promise.then (/Users/tim/projects/jest-when/node_modules/jest-jasmine2/build/queue_runner.js:73:82)
    at processTicksAndRejections (internal/process/next_tick.js:81:5) thrown
codecov-io commented 5 years ago

Codecov Report

Merging #20 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #20   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines          84     84           
=====================================
  Hits           84     84
Impacted Files Coverage Δ
src/when.js 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f51da15...fdc8150. Read the comment docs.

timkindberg commented 5 years ago

jest-when@2.5.0

Whoaa512 commented 5 years ago

👍