Skip to content

Releases: ttmarek/consolemock

v1.1.0

08 Jun 15:38
Compare
Choose a tag to compare

πŸš€ Added support for console.debug. Special thanks to @jcurtis!

https://www.npmjs.com/package/consolemock

npm install consolemock@1.1.0

v1.0.4

04 Mar 19:27
Compare
Choose a tag to compare

πŸ€¦β€β™‚οΈ Add index.d.ts to list of published files

v1.0.3

04 Mar 19:07
Compare
Choose a tag to compare

πŸ†• Add Typescript typings (#21)

v1.0.2

07 Nov 04:54
Compare
Choose a tag to compare

πŸ”¨ 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

19 Oct 10:45
Compare
Choose a tag to compare

πŸ”¨ Remove engines field in package.json, support all versions of node

v1.0.0

17 Oct 04:11
Compare
Choose a tag to compare

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)