Skip to content

Commit a00a49a

Browse files
committed
feat(@angular-devkit/build-angular): add aot to WTR schema
1 parent c9273f8 commit a00a49a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/angular_devkit/build_angular/src/builders/web-test-runner/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async function buildTests(
100100
entryPoints,
101101
tsConfig: options.tsConfig,
102102
outputPath,
103-
aot: false,
103+
aot: options.aot,
104104
index: false,
105105
outputHashing: OutputHashing.None,
106106
optimization: false,

packages/angular_devkit/build_angular/src/builders/web-test-runner/schema.json

+5
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@
249249
"webWorkerTsConfig": {
250250
"type": "string",
251251
"description": "TypeScript configuration for Web Worker modules."
252+
},
253+
"aot": {
254+
"type": "boolean",
255+
"description": "Run tests using Ahead of Time compilation.",
256+
"default": false
252257
}
253258
},
254259
"additionalProperties": false,

0 commit comments

Comments
 (0)