Adjusts a Mocha output so that it is consistent across platforms and can be used for snapshot testing. Basically adjusts the checkmark symbol and removes time values.
OTHER License
Adjusts a Mocha output so that it is consistent across platforms and can be used for snapshot testing. Basically adjusts the checkmark symbol and removes time values.
# npm
$ npm install unify-mocha-output
# Yarn
$ yarn add unify-mocha-output
import unifyMochaOutput from 'unify-mocha-output'
console.log(unifyMochaOutput(
`index
√ test1
√ test2
2 passing (7ms)
`
))
/*
index
✓ test1
✓ test2
2 passing
`/
Are you missing something or want to contribute? Feel free to file an issue or a pull request! ⚙️
Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:
Thanks a lot for your support! ❤️