Changelog History
-
v1.1.0 Changes
June 08, 2018๐ฑ ๐ Added support for
console.debug
. Special thanks to @jcurtis!๐ฆ https://www.npmjs.com/package/consolemock
npm install [email protected]
-
v1.0.4 Changes
March 04, 2018๐ฑ ๐คฆโโ๏ธ Add
index.d.ts
to list of published files -
v1.0.3 Changes
March 04, 2018๐ฑ ๐ Add Typescript typings (#21)
-
v1.0.2 Changes
November 07, 2017๐ฑ ๐จ Fix module export for common JS (#17)
0๏ธโฃ 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 Changes
October 19, 2017๐ฆ ๐จ Remove engines field in package.json, support all versions of node
-
v1.0.0 Changes
October 17, 2017๐ฅ Breaking Changes
๐ฑ โ ๏ธ The function to make a console mock is now the default (and only) export:
// 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)