Skip to content

Commit 4ede5b6

Browse files
filipesilvavikerman
authored andcommitted
test: add jit-prod e2e
1 parent e8cdfa6 commit 4ede5b6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { ng } from '../../utils/process';
2+
import { updateJsonFile } from '../../utils/project';
3+
4+
5+
export default async function () {
6+
// Make prod use JIT.
7+
await updateJsonFile('angular.json', configJson => {
8+
const appArchitect = configJson.projects['test-project'].architect;
9+
appArchitect.build.configurations['production'].aot = false;
10+
appArchitect.build.configurations['production'].buildOptimizer = false;
11+
});
12+
13+
// Test it works
14+
await ng('e2e', '--prod');
15+
}

0 commit comments

Comments
 (0)