Skip to content

Commit

Permalink
test: add jit-prod e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva authored and vikerman committed Oct 17, 2019
1 parent e8cdfa6 commit 4ede5b6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/legacy-cli/e2e/tests/build/jit-prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { ng } from '../../utils/process';
import { updateJsonFile } from '../../utils/project';


export default async function () {
// Make prod use JIT.
await updateJsonFile('angular.json', configJson => {
const appArchitect = configJson.projects['test-project'].architect;
appArchitect.build.configurations['production'].aot = false;
appArchitect.build.configurations['production'].buildOptimizer = false;
});

// Test it works
await ng('e2e', '--prod');
}

0 comments on commit 4ede5b6

Please sign in to comment.