diff --git a/integration-tests/__tests__/__snapshots__/deprecated-cli-options.test.js.snap b/integration-tests/__tests__/__snapshots__/deprecated-cli-options.test.js.snap deleted file mode 100644 index 705bcbbd12aa..000000000000 --- a/integration-tests/__tests__/__snapshots__/deprecated-cli-options.test.js.snap +++ /dev/null @@ -1,15 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Prints deprecation warnings for CLI flags 1`] = ` -"PASS __tests__/dummy.js - ✓ Dummy (3ms) - -Test Suites: 1 passed, 1 total -Tests: 1 passed, 1 total -Snapshots: 0 total -Time: 0.711s, estimated 1s -Ran all test suites. -" -`; - -exports[`Prints deprecation warnings for CLI flags 2`] = `""`; diff --git a/integration-tests/__tests__/deprecated-cli-options.test.js b/integration-tests/__tests__/deprecated-cli-options.test.js index 7e90b8801f6d..ef86e5f36e82 100644 --- a/integration-tests/__tests__/deprecated-cli-options.test.js +++ b/integration-tests/__tests__/deprecated-cli-options.test.js @@ -14,14 +14,8 @@ const runJest = require('../runJest'); const dir = path.resolve(__dirname, '../deprecated-cli-options'); -jest.mock('jest-config', () => ({ - deprecationEntries: { - cache: () => 'This option is deprecated.', - }, -})); - it('Prints deprecation warnings for CLI flags', () => { - const {stderr, stdout} = runJest(dir, ['--cache']); - expect(stderr).toMatchSnapshot(); - expect(stdout).toMatchSnapshot(); + const {stderr, stdout, status} = runJest(dir); + expect(status).toBe(0); + expect(stderr).toMatch(/Test Suites: 1 passed, 1 total/); });