All Versions
6
Latest Version
Avg Release Cycle
47 days
Latest Release
1234 days ago

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)