From 2c5fd20f0535f5441d8bcb477538defdd9529926 Mon Sep 17 00:00:00 2001 From: Ahn <27772165+ahnpnl@users.noreply.github.com> Date: Mon, 25 Apr 2022 00:21:21 +0200 Subject: [PATCH] feat: remove `ngcc-jest-processor` entry file (#1414) BREAKING CHANGE One should use `jest-preset-angular/global-setup` instead --- ngcc-jest-processor.js | 11 ----------- scripts/test-examples.js | 10 +--------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 ngcc-jest-processor.js diff --git a/ngcc-jest-processor.js b/ngcc-jest-processor.js deleted file mode 100644 index 2e76717624..0000000000 --- a/ngcc-jest-processor.js +++ /dev/null @@ -1,11 +0,0 @@ -console.warn( - 'ngcc-jest-processor is deprecated and will be removed in the next major version v12.' + - ' Please use jest-preset-angular/global-setup in Jest config instead, e.g. \n' + - ` - module.exports = { - globalSetup: 'jest-preset-angular/global-setup', - }; - ` -); - -module.exports = require('./build/utils/ngcc-jest-processor'); diff --git a/scripts/test-examples.js b/scripts/test-examples.js index 9ed4adf290..bbfe11c70e 100755 --- a/scripts/test-examples.js +++ b/scripts/test-examples.js @@ -35,15 +35,7 @@ const executeTest = (projectPath) => { logger.log('installing bundled version of jest-preset-angular'); logger.log(); - [ - 'build', - 'presets', - 'global-setup.js', - 'jest-preset.js', - 'ngcc-jest-processor.js', - 'package.json', - 'setup-jest.js', - ].forEach((asset) => { + ['build', 'presets', 'global-setup.js', 'jest-preset.js', 'package.json', 'setup-jest.js'].forEach((asset) => { const assetToReplace = join(projectPath, 'node_modules', 'jest-preset-angular', asset); const assetToCopy = join(rootDir, asset); copySync(assetToCopy, assetToReplace, {});