From 040253c42624e13b40554e295e9b57fdff6495b4 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 6 May 2020 17:00:47 +0200 Subject: [PATCH] build: update side-effects integration test to not expect esm5 output (#36944) As mentioned in previous commits, as of v10 the release output does no longer contain ESM5 output due to an update to the APF. This means that the side-effect integration test needs to be updated as it currently expects/tests esm5 output. PR Close #36944 --- integration/side-effects/side-effects.json | 64 ------------------- .../snapshots/animations-browser/esm5.js | 5 -- .../side-effects/snapshots/animations/esm5.js | 1 - .../side-effects/snapshots/common/esm5.js | 3 - .../side-effects/snapshots/core/esm5.js | 19 ------ .../side-effects/snapshots/elements/esm5.js | 7 -- .../side-effects/snapshots/forms/esm5.js | 9 --- .../snapshots/platform-browser/esm5.js | 5 -- .../side-effects/snapshots/router/esm5.js | 9 --- 9 files changed, 122 deletions(-) delete mode 100644 integration/side-effects/snapshots/animations-browser/esm5.js delete mode 100644 integration/side-effects/snapshots/animations/esm5.js delete mode 100644 integration/side-effects/snapshots/common/esm5.js delete mode 100644 integration/side-effects/snapshots/core/esm5.js delete mode 100644 integration/side-effects/snapshots/elements/esm5.js delete mode 100644 integration/side-effects/snapshots/forms/esm5.js delete mode 100644 integration/side-effects/snapshots/platform-browser/esm5.js delete mode 100644 integration/side-effects/snapshots/router/esm5.js diff --git a/integration/side-effects/side-effects.json b/integration/side-effects/side-effects.json index 8ea44701f2..c22ac39d5e 100644 --- a/integration/side-effects/side-effects.json +++ b/integration/side-effects/side-effects.json @@ -1,13 +1,5 @@ { "tests": [ - { - "esModules": "./node_modules/@angular/animations/esm5/animations.js", - "expectedOutput": "./snapshots/animations/esm5.js" - }, - { - "esModules": "./node_modules/@angular/animations/fesm5/animations.js", - "expectedOutput": "./snapshots/animations/esm5.js" - }, { "esModules": "./node_modules/@angular/animations/esm2015/animations.js", "expectedOutput": "./snapshots/animations/esm2015.js" @@ -16,14 +8,6 @@ "esModules": "./node_modules/@angular/animations/fesm2015/animations.js", "expectedOutput": "./snapshots/animations/esm2015.js" }, - { - "esModules": "./node_modules/@angular/animations/esm5/browser/browser.js", - "expectedOutput": "./snapshots/animations-browser/esm5.js" - }, - { - "esModules": "./node_modules/@angular/animations/fesm5/browser.js", - "expectedOutput": "./snapshots/animations-browser/esm5.js" - }, { "esModules": "./node_modules/@angular/animations/esm2015/browser/browser.js", "expectedOutput": "./snapshots/animations-browser/esm2015.js" @@ -32,14 +16,6 @@ "esModules": "./node_modules/@angular/animations/fesm2015/browser.js", "expectedOutput": "./snapshots/animations-browser/esm2015.js" }, - { - "esModules": "./node_modules/@angular/common/esm5/common.js", - "expectedOutput": "./snapshots/common/esm5.js" - }, - { - "esModules": "./node_modules/@angular/common/fesm5/common.js", - "expectedOutput": "./snapshots/common/esm5.js" - }, { "esModules": "./node_modules/@angular/common/esm2015/common.js", "expectedOutput": "./snapshots/common/esm2015.js" @@ -48,14 +24,6 @@ "esModules": "./node_modules/@angular/common/fesm2015/common.js", "expectedOutput": "./snapshots/common/esm2015.js" }, - { - "esModules": "./node_modules/@angular/core/esm5/core.js", - "expectedOutput": "./snapshots/core/esm5.js" - }, - { - "esModules": "./node_modules/@angular/core/fesm5/core.js", - "expectedOutput": "./snapshots/core/esm5.js" - }, { "esModules": "./node_modules/@angular/core/esm2015/core.js", "expectedOutput": "./snapshots/core/esm2015.js" @@ -64,14 +32,6 @@ "esModules": "./node_modules/@angular/core/fesm2015/core.js", "expectedOutput": "./snapshots/core/esm2015.js" }, - { - "esModules": "./node_modules/@angular/elements/esm5/elements.js", - "expectedOutput": "./snapshots/elements/esm5.js" - }, - { - "esModules": "./node_modules/@angular/elements/fesm5/elements.js", - "expectedOutput": "./snapshots/elements/esm5.js" - }, { "esModules": "./node_modules/@angular/elements/esm2015/elements.js", "expectedOutput": "./snapshots/elements/esm2015.js" @@ -80,14 +40,6 @@ "esModules": "./node_modules/@angular/elements/fesm2015/elements.js", "expectedOutput": "./snapshots/elements/esm2015.js" }, - { - "esModules": "./node_modules/@angular/forms/esm5/forms.js", - "expectedOutput": "./snapshots/forms/esm5.js" - }, - { - "esModules": "./node_modules/@angular/forms/fesm5/forms.js", - "expectedOutput": "./snapshots/forms/esm5.js" - }, { "esModules": "./node_modules/@angular/forms/esm2015/forms.js", "expectedOutput": "./snapshots/forms/esm2015.js" @@ -96,14 +48,6 @@ "esModules": "./node_modules/@angular/forms/fesm2015/forms.js", "expectedOutput": "./snapshots/forms/esm2015.js" }, - { - "esModules": "./node_modules/@angular/platform-browser/esm5/platform-browser.js", - "expectedOutput": "./snapshots/platform-browser/esm5.js" - }, - { - "esModules": "./node_modules/@angular/platform-browser/fesm5/platform-browser.js", - "expectedOutput": "./snapshots/platform-browser/esm5.js" - }, { "esModules": "./node_modules/@angular/platform-browser/esm2015/platform-browser.js", "expectedOutput": "./snapshots/platform-browser/esm2015.js" @@ -112,14 +56,6 @@ "esModules": "./node_modules/@angular/platform-browser/fesm2015/platform-browser.js", "expectedOutput": "./snapshots/platform-browser/esm2015.js" }, - { - "esModules": "./node_modules/@angular/router/esm5/router.js", - "expectedOutput": "./snapshots/router/esm5.js" - }, - { - "esModules": "./node_modules/@angular/router/fesm5/router.js", - "expectedOutput": "./snapshots/router/esm5.js" - }, { "esModules": "./node_modules/@angular/router/esm2015/router.js", "expectedOutput": "./snapshots/router/esm2015.js" diff --git a/integration/side-effects/snapshots/animations-browser/esm5.js b/integration/side-effects/snapshots/animations-browser/esm5.js deleted file mode 100644 index 58aec1ffc5..0000000000 --- a/integration/side-effects/snapshots/animations-browser/esm5.js +++ /dev/null @@ -1,5 +0,0 @@ -import "tslib"; - -import "@angular/animations"; - -import "@angular/core"; diff --git a/integration/side-effects/snapshots/animations/esm5.js b/integration/side-effects/snapshots/animations/esm5.js deleted file mode 100644 index 8b13789179..0000000000 --- a/integration/side-effects/snapshots/animations/esm5.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/integration/side-effects/snapshots/common/esm5.js b/integration/side-effects/snapshots/common/esm5.js deleted file mode 100644 index 05d504f1d4..0000000000 --- a/integration/side-effects/snapshots/common/esm5.js +++ /dev/null @@ -1,3 +0,0 @@ -import "tslib"; - -import "@angular/core"; diff --git a/integration/side-effects/snapshots/core/esm5.js b/integration/side-effects/snapshots/core/esm5.js deleted file mode 100644 index de7fa8e523..0000000000 --- a/integration/side-effects/snapshots/core/esm5.js +++ /dev/null @@ -1,19 +0,0 @@ -import "tslib"; - -import "rxjs"; - -import "rxjs/operators"; - -var __globalThis = "undefined" !== typeof globalThis && globalThis; - -var __window = "undefined" !== typeof window && window; - -var __self = "undefined" !== typeof self && "undefined" !== typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && self; - -var __global = "undefined" !== typeof global && global; - -var _global = __globalThis || __global || __window || __self; - -if (ngDevMode) _global.$localize = _global.$localize || function() { - throw new Error("It looks like your application or one of its dependencies is using i18n.\n" + "Angular 9 introduced a global `$localize()` function that needs to be loaded.\n" + "Please run `ng add @angular/localize` from the Angular CLI.\n" + "(For non-CLI projects, add `import '@angular/localize/init';` to your `polyfills.ts` file.\n" + "For server-side rendering applications add the import to your `main.server.ts` file.)"); -}; diff --git a/integration/side-effects/snapshots/elements/esm5.js b/integration/side-effects/snapshots/elements/esm5.js deleted file mode 100644 index 4500888aa3..0000000000 --- a/integration/side-effects/snapshots/elements/esm5.js +++ /dev/null @@ -1,7 +0,0 @@ -import "tslib"; - -import "@angular/core"; - -import "rxjs"; - -import "rxjs/operators"; diff --git a/integration/side-effects/snapshots/forms/esm5.js b/integration/side-effects/snapshots/forms/esm5.js deleted file mode 100644 index a314b72fb4..0000000000 --- a/integration/side-effects/snapshots/forms/esm5.js +++ /dev/null @@ -1,9 +0,0 @@ -import "tslib"; - -import "@angular/core"; - -import "@angular/common"; - -import "rxjs"; - -import "rxjs/operators"; diff --git a/integration/side-effects/snapshots/platform-browser/esm5.js b/integration/side-effects/snapshots/platform-browser/esm5.js deleted file mode 100644 index 013438f340..0000000000 --- a/integration/side-effects/snapshots/platform-browser/esm5.js +++ /dev/null @@ -1,5 +0,0 @@ -import "tslib"; - -import "@angular/common"; - -import "@angular/core"; diff --git a/integration/side-effects/snapshots/router/esm5.js b/integration/side-effects/snapshots/router/esm5.js deleted file mode 100644 index ff225d142a..0000000000 --- a/integration/side-effects/snapshots/router/esm5.js +++ /dev/null @@ -1,9 +0,0 @@ -import "tslib"; - -import "@angular/common"; - -import "@angular/core"; - -import "rxjs"; - -import "rxjs/operators";