Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: logRoles now actually logs its output to console. (#312)
* logRoles now logs its output to console. API is unchanged, logRoles will still return the same string, but now also logs to the console. #311 * logRoles no longer returns a string logRoles now simply calls console.log. * Added coverage for logRoles * Fixed logRoles tests, added serializer to test env Test now only mocks console.log once. jest-serializer-ansi is now added to tests/setup-env.js so all snapshots benefit from it.
- Loading branch information
1 parent
2846a8e
commit 170978b
Showing
4 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
import 'jest-dom/extend-expect' | ||
import jestSerializerAnsi from 'jest-serializer-ansi' | ||
|
||
expect.addSnapshotSerializer(jestSerializerAnsi) |