Closed screendriver closed 8 years ago
Assume you have
import { mock } from 'mocktail'; export function bar() { return 'i am bar'; }
and I don't want to have my stub / mock in my source file (because it's a bad design and bloats the production source code size), how can I mock bar() in my tests?
bar()
https://github.com/nhz-io/babel-plugin-mocktail
Awesome work, @nhz-io!
Thank you. I will try to get it running with my jspm / SystemJS setup.
Assume you have
foo.js
and I don't want to have my stub / mock in my source file (because it's a bad design and bloats the production source code size), how can I mock
bar()
in my tests?