Skip to content

Commit

Permalink
Bring back chalk by downgrading sinon to v12
Browse files Browse the repository at this point in the history
  • Loading branch information
MilapNaik committed Mar 26, 2024
1 parent 9dd053d commit 0bf6dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"nyc": "^15.1.0",
"q": "^1.5.1",
"rimraf": "^5.0.5",
"sinon": "^17.0.1",
"sinon": "^12.0.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.2",
"typescript": "^5.4.3"
Expand Down
3 changes: 3 additions & 0 deletions src/Logger.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect } from 'chai';
import { Logger, LogLevel, noop } from './Logger';
import chalk from 'chalk';
import { createSandbox } from 'sinon';
const sinon = createSandbox();

Expand All @@ -9,6 +10,8 @@ describe('Logger', () => {
beforeEach(() => {
logger = new Logger(LogLevel.trace);
sinon.restore();
//disable chalk colors for testing
sinon.stub(chalk, 'grey').callsFake((arg) => arg as any);
});

it('noop does nothing', () => {
Expand Down

0 comments on commit 0bf6dd3

Please sign in to comment.