Skip to content

Commit

Permalink
refactor: remove global setup script with ngcc
Browse files Browse the repository at this point in the history
BREAKING CHANGE

Running 'ngcc' is not required for Angular 16+ projects
  • Loading branch information
ahnpnl committed Feb 28, 2025
1 parent 873ab73 commit 35819c9
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 230 deletions.
1 change: 0 additions & 1 deletion global-setup.js

This file was deleted.

3 changes: 0 additions & 3 deletions global-setup.mjs

This file was deleted.

22 changes: 7 additions & 15 deletions scripts/test-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,13 @@ const executeTest = (projectPath) => {
logger.log('installing bundled version of jest-preset-angular');
logger.log();

[
'build',
'presets',
'global-setup.js',
'global-setup.mjs',
'jest-preset.js',
'package.json',
'setup-jest.js',
'setup-jest.mjs',
'setup-env',
].forEach((asset) => {
const assetToReplace = join(projectPath, 'node_modules', 'jest-preset-angular', asset);
const assetToCopy = join(rootDir, asset);
copySync(assetToCopy, assetToReplace, {});
});
['build', 'presets', 'jest-preset.js', 'package.json', 'setup-jest.js', 'setup-jest.mjs', 'setup-env'].forEach(
(asset) => {
const assetToReplace = join(projectPath, 'node_modules', 'jest-preset-angular', asset);
const assetToCopy = join(rootDir, asset);
copySync(assetToCopy, assetToReplace, {});
},
);

// then we can run the tests
const cmdLine = ['yarn', 'test'];
Expand Down
36 changes: 0 additions & 36 deletions src/config/global-setup.spec.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/config/global-setup.ts

This file was deleted.

95 changes: 0 additions & 95 deletions src/utils/ngcc-jest-processor.ts

This file was deleted.

70 changes: 0 additions & 70 deletions website/docs/guides/angular-ivy.md

This file was deleted.

1 change: 0 additions & 1 deletion website/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"getting-started/testbed-environment"
],
"Guides": [
"guides/angular-ivy",
"guides/angular-13+",
"guides/esm-support",
"guides/jsdom-environment",
Expand Down

0 comments on commit 35819c9

Please sign in to comment.