Skip to content

Commit

Permalink
remove mapCoverage deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Dec 6, 2020
1 parent 75f4500 commit 3b1da5d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 49 deletions.
25 changes: 0 additions & 25 deletions e2e/__tests__/deprecatedCliOptions.test.ts

This file was deleted.

10 changes: 0 additions & 10 deletions e2e/deprecated-cli-options/__tests__/dummy.js

This file was deleted.

3 changes: 0 additions & 3 deletions e2e/deprecated-cli-options/package.json

This file was deleted.

Expand Up @@ -72,18 +72,15 @@ const jestAdapter = async (
});

for (const path of config.setupFilesAfterEnv) {
// TODO: remove ? in Jest 26
const esm = runtime.unstable_shouldLoadAsEsm?.(path);
const esm = runtime.unstable_shouldLoadAsEsm(path);

if (esm) {
await runtime.unstable_importModule(path);
} else {
runtime.requireModule(path);
}
}

// TODO: remove ? in Jest 26
const esm = runtime.unstable_shouldLoadAsEsm?.(testPath);
const esm = runtime.unstable_shouldLoadAsEsm(testPath);

if (esm) {
await runtime.unstable_importModule(testPath);
Expand Down
6 changes: 0 additions & 6 deletions packages/jest-config/src/Deprecated.ts
Expand Up @@ -20,12 +20,6 @@ const deprecatedOptions: DeprecatedOptions = {
}
`,

mapCoverage: () => ` Option ${chalk.bold(
'"mapCoverage"',
)} has been removed, as it's no longer necessary.
Please update your configuration.`,

preprocessorIgnorePatterns: (options: {
preprocessorIgnorePatterns?: Array<string>;
}) => ` Option ${chalk.bold(
Expand Down

0 comments on commit 3b1da5d

Please sign in to comment.