Releases: ttmarek/consolemock
Releases Β· ttmarek/consolemock
v1.1.0
v1.0.4
v1.0.3
v1.0.2
π¨ Fix module export for common JS (#17)
You can now require consolemock
without having to add the .default
.
Before you would have to write:
const consolemock = require('consolemock').default;
Now, you can just write:
const consolemock = require('consolemock')
π
Thanks to @sudo-suhas.
v1.0.1
v1.0.0
Breaking Changes
// before
- import { makeConsoleMock } from 'consolemock';
// now
+ import makeConsoleMock from 'consolemock';
Non-Breaking Changes
π Has a new method to clear the console mock history: console.clearHistory
(#13)
π¨οΈ Now throws an error if you call print
without providing makeConsoleMock with a native console object (#12)
π Adopted prettier (#14)