mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| snapshots | ||
| .gitignore | ||
| BUILD.bazel | ||
| package.json | ||
| README.md | ||
| side-effects.json | ||
| yarn.lock | ||
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.