Skip to content

Commit 8a416e7

Browse files
clydinalan-agius4
authored andcommitted
test: remove animations check from material build E2E test
The latest version of Angular material no longer adds `@angular/animations` to application code when using `ng add`.
1 parent 1355d08 commit 8a416e7

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/legacy-cli/e2e/tests/build/material.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,4 @@ export default async function () {
9090
);
9191

9292
await ng('e2e', '--configuration=production');
93-
94-
const usingApplicationBuilder = getGlobalVariable('argv')['esbuild'];
95-
if (usingApplicationBuilder) {
96-
// Test with chunk optimizations to reduce async animations chunk file count
97-
await execWithEnv('ng', ['build'], {
98-
...process.env,
99-
NG_BUILD_OPTIMIZE_CHUNKS: '1',
100-
});
101-
const distFiles = await readdir('dist/test-project/browser');
102-
const jsCount = distFiles.filter((file) => file.endsWith('.js')).length;
103-
// 3 = polyfills, main, and one lazy chunk
104-
assert.equal(jsCount, 3);
105-
106-
await execWithEnv('ng', ['e2e', '--configuration=production'], {
107-
...process.env,
108-
NG_BUILD_OPTIMIZE_CHUNKS: '1',
109-
});
110-
}
11193
}

0 commit comments

Comments
 (0)