mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f0d63f17e2
This commit also performs lock file maintenance on all integration tests, fixing some ambigous ESM/CJS dependency graph issues. e.g. ``` Unknown error: Error [ERR_REQUIRE_ESM]: require() of ES Module /tmp/ng-integration-test-aTpQOT/test-sandbox/node_modules/string-width/index.js from /tmp/ng-integration-test-aTpQOT/test-sandbox/node_modules/cliui/build/index.cjs not supported. Instead change the require of index.js in /tmp/ng-integration-test-aTpQOT/test-sandbox/node_modules/cliui/build/index.cjs to a dynamic import() which is available in all CommonJS modules. ------------------------------------------ ``` Closes #56261. PR Close #56364
This test checks if the side effects for loading Angular packages have changed using https://github.com/filipesilva/check-side-effects.
Running yarn test will check all ES modules listed in side-effects.json.
Running yarn update will update any changed side effects.
To add a new ES module to this test, add a new entry in side-effects.json.
Usually the ESM and FESM should have the same output, but retained objects that were renamed during the flattening step will leave behind a different name.