diff --git a/e2e/__tests__/deprecatedCliOptions.test.ts b/e2e/__tests__/deprecatedCliOptions.test.ts deleted file mode 100644 index 4334b065dc43..000000000000 --- a/e2e/__tests__/deprecatedCliOptions.test.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -import * as path from 'path'; -import runJest from '../runJest'; - -const dir = path.resolve(__dirname, '../deprecated-cli-options'); - -it('Prints deprecation warnings for CLI flags', () => { - const {stderr, exitCode} = runJest(dir, ['--mapCoverage']); - expect(exitCode).toBe(0); - expect(stderr).toMatch(/Test Suites: 1 passed, 1 total/); - expect(stderr).toMatch(`● Deprecation Warning: - - Option "mapCoverage" has been removed, as it's no longer necessary. - - Please update your configuration. - - CLI Options Documentation: - https://jestjs.io/docs/en/cli.html`); -}); diff --git a/e2e/deprecated-cli-options/__tests__/dummy.js b/e2e/deprecated-cli-options/__tests__/dummy.js deleted file mode 100644 index 1925b3756db7..000000000000 --- a/e2e/deprecated-cli-options/__tests__/dummy.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -test('Dummy', () => { - expect(2).toBe(2); -}); diff --git a/e2e/deprecated-cli-options/package.json b/e2e/deprecated-cli-options/package.json deleted file mode 100644 index 586d4ca6b75c..000000000000 --- a/e2e/deprecated-cli-options/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "jest": {} -} diff --git a/packages/jest-config/src/Deprecated.ts b/packages/jest-config/src/Deprecated.ts index 82ffb98f6a06..54843dff242d 100644 --- a/packages/jest-config/src/Deprecated.ts +++ b/packages/jest-config/src/Deprecated.ts @@ -19,12 +19,6 @@ export default { } `, - mapCoverage: () => ` Option ${chalk.bold( - '"mapCoverage"', - )} has been removed, as it's no longer necessary. - - Please update your configuration.`, - preprocessorIgnorePatterns: (options: { preprocessorIgnorePatterns: Array; }) => ` Option ${chalk.bold(