We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b8fe1 commit 824d65dCopy full SHA for 824d65d
__mocks__/chalk.js
@@ -1,4 +1,4 @@
1
-const chalk = {
+const chalk = Object.assign((text) => text, {
2
green: (text) => text,
3
red: (text) => text,
4
yellow: (text) => text,
@@ -38,6 +38,6 @@ const chalk = {
38
inverse: (text) => text,
39
strikethrough: (text) => text,
40
reset: (text) => text,
41
-};
+});
42
43
module.exports = chalk;
jest.config.cjs
@@ -39,4 +39,5 @@ module.exports = {
moduleNameMapper: {
'^chalk$': '<rootDir>/__mocks__/chalk.js',
},
+ forceExit: true,
};
0 commit comments