Skip to content

Commit

Permalink
build(deps): Bump chalk from 2.4.2 to 3.0.0 (#1836)
Browse files Browse the repository at this point in the history
Bumps [chalk](https://github.com/chalk/chalk) from 2.4.2 to 3.0.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](chalk/chalk@v2.4.2...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
  • Loading branch information
dependabot-preview[bot] authored and simondel committed Nov 13, 2019
1 parent e896c18 commit 4ac812c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Expand Up @@ -55,7 +55,7 @@
"dependencies": {
"@stryker-mutator/api": "^2.2.1",
"@stryker-mutator/util": "^2.2.1",
"chalk": "~2.4.1",
"chalk": "~3.0.0",
"commander": "~4.0.0",
"get-port": "~5.0.0",
"glob": "~7.1.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/reporters/ClearTextReporter.ts
Expand Up @@ -4,10 +4,11 @@ import { Position, StrykerOptions } from '@stryker-mutator/api/core';
import { Logger } from '@stryker-mutator/api/logging';
import { commonTokens } from '@stryker-mutator/api/plugin';
import { MutantResult, MutantStatus, mutationTestReportSchema, Reporter } from '@stryker-mutator/api/report';
import chalk from 'chalk';
import { calculateMetrics } from 'mutation-testing-metrics';
import { tokens } from 'typed-inject';

import chalk = require('chalk');

import ClearTextScoreTable from './ClearTextScoreTable';

export default class ClearTextReporter implements Reporter {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/reporters/ClearTextScoreTable.ts
@@ -1,9 +1,9 @@
import * as os from 'os';

import { MutationScoreThresholds } from '@stryker-mutator/api/core';
import chalk from 'chalk';
import { MetricsResult } from 'mutation-testing-metrics';

import chalk = require('chalk');
import flatMap = require('lodash.flatmap');

const FILES_ROOT_NAME = 'All files';
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/reporters/DotsReporter.ts
@@ -1,7 +1,8 @@
import * as os from 'os';

import { MutantResult, MutantStatus, Reporter } from '@stryker-mutator/api/report';
import chalk from 'chalk';

import chalk = require('chalk');

export default class DotsReporter implements Reporter {
public onMutantTested(result: MutantResult) {
Expand Down
7 changes: 4 additions & 3 deletions packages/core/test/unit/reporters/ClearTextReporter.spec.ts
Expand Up @@ -4,9 +4,10 @@ import { MutantResult, MutantStatus, mutationTestReportSchema } from '@stryker-m
import { testInjector } from '@stryker-mutator/test-helpers';
import { mutantResult, mutationScoreThresholds } from '@stryker-mutator/test-helpers/src/factory';
import { expect } from 'chai';
import chalk from 'chalk';
import * as sinon from 'sinon';

import chalk = require('chalk');

import ClearTextReporter from '../../../src/reporters/ClearTextReporter';

const colorizeFileAndPosition = (sourceFilePath: string, line: number, column: number) => {
Expand Down Expand Up @@ -106,8 +107,8 @@ describe(ClearTextReporter.name, () => {

it('should report on the survived mutant', () => {
expect(process.stdout.write).to.have.been.calledWithMatch(sinon.match('1. [Survived] Math'));
expect(process.stdout.write).to.have.been.calledWith(chalk.red('- original line') + os.EOL);
expect(process.stdout.write).to.have.been.calledWith(chalk.green('+ mutated line') + os.EOL);
expect(process.stdout.write).to.have.been.calledWith(`${chalk.red('- original line')}${os.EOL}`);
expect(process.stdout.write).to.have.been.calledWith(`${chalk.green('+ mutated line')}${os.EOL}`);
});

it('should not log individual ran tests', () => {
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { MutationScoreThresholds } from '@stryker-mutator/api/core';
import { testInjector } from '@stryker-mutator/test-helpers';
import { metrics, metricsResult } from '@stryker-mutator/test-helpers/src/factory';
import { expect } from 'chai';
import chalk from 'chalk';
import { MetricsResult } from 'mutation-testing-metrics';

import chalk = require('chalk');
import flatMap = require('lodash.flatmap');

import ClearTextScoreTable from '../../../src/reporters/ClearTextScoreTable';
Expand Down
3 changes: 2 additions & 1 deletion packages/core/test/unit/reporters/DotsReporter.spec.ts
Expand Up @@ -3,9 +3,10 @@ import * as os from 'os';
import { MutantResult, MutantStatus } from '@stryker-mutator/api/report';
import { factory } from '@stryker-mutator/test-helpers';
import { expect } from 'chai';
import chalk from 'chalk';
import * as sinon from 'sinon';

import chalk = require('chalk');

import DotsReporter from '../../../src/reporters/DotsReporter';

describe('DotsReporter', () => {
Expand Down

0 comments on commit 4ac812c

Please sign in to comment.