Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove global setup script with ngcc #2993

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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