diff --git a/packages/jest-cli/src/reporters/__tests__/__snapshots__/getSnapshotStatus-test.js.snap b/packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_status.test.js.snap similarity index 100% rename from packages/jest-cli/src/reporters/__tests__/__snapshots__/getSnapshotStatus-test.js.snap rename to packages/jest-cli/src/reporters/__tests__/__snapshots__/get_snapshot_status.test.js.snap diff --git a/packages/jest-cli/src/reporters/__tests__/default_reporter.test.js b/packages/jest-cli/src/reporters/__tests__/default_reporter.test.js index d22815366861..45710329751f 100644 --- a/packages/jest-cli/src/reporters/__tests__/default_reporter.test.js +++ b/packages/jest-cli/src/reporters/__tests__/default_reporter.test.js @@ -16,6 +16,14 @@ const testCase = { path: '/foo', }; const testResult = { + snapshot: { + added: 0, + fileDeleted: true, + matched: 1, + unchecked: 0, + unmatched: 0, + updated: 0, + }, testFilePath: '/foo', }; diff --git a/packages/jest-cli/src/reporters/__tests__/getSnapshotStatus-test.js b/packages/jest-cli/src/reporters/__tests__/get_snapshot_status.test.js similarity index 94% rename from packages/jest-cli/src/reporters/__tests__/getSnapshotStatus-test.js rename to packages/jest-cli/src/reporters/__tests__/get_snapshot_status.test.js index ec244f2cd01e..e9ba8053db20 100644 --- a/packages/jest-cli/src/reporters/__tests__/getSnapshotStatus-test.js +++ b/packages/jest-cli/src/reporters/__tests__/get_snapshot_status.test.js @@ -9,7 +9,7 @@ 'use strict'; -const getSnapshotStatus = require('../getSnapshotStatus'); +const getSnapshotStatus = require('../get_snapshot_status'); test('Retrieves the snapshot status', () => { const snapshotResult = { diff --git a/packages/jest-cli/src/reporters/default_reporter.js b/packages/jest-cli/src/reporters/default_reporter.js index 36f20b5808af..84eb33eb6258 100644 --- a/packages/jest-cli/src/reporters/default_reporter.js +++ b/packages/jest-cli/src/reporters/default_reporter.js @@ -21,7 +21,7 @@ import isCI from 'is-ci'; import BaseReporter from './base_reporter'; import Status from './Status'; import getResultHeader from './get_result_header'; -const getSnapshotStatus = require('./getSnapshotStatus'); +import getSnapshotStatus from './get_snapshot_status'; type write = (chunk: string, enc?: any, cb?: () => void) => boolean; type FlushBufferedOutput = () => void; diff --git a/packages/jest-cli/src/reporters/getSnapshotStatus.js b/packages/jest-cli/src/reporters/get_snapshot_status.js similarity index 100% rename from packages/jest-cli/src/reporters/getSnapshotStatus.js rename to packages/jest-cli/src/reporters/get_snapshot_status.js