Skip to content

Commit 7d1dce8

Browse files
author
Angular Builds
committed
ef7ea53 feat(@angular-devkit/build-angular): add aot option to jest
1 parent 309d96c commit 7d1dce8

File tree

6 files changed

+20
-11
lines changed

6 files changed

+20
-11
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "19.2.0-next.1+sha-5123ff4",
3+
"version": "19.2.0-next.1+sha-ef7ea53",
44
"description": "Angular Webpack Build Facade",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",
77
"builders": "builders.json",
88
"dependencies": {
99
"@ampproject/remapping": "2.3.0",
10-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#5123ff4",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#5123ff4",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#5123ff4",
13-
"@angular/build": "github:angular/angular-build-builds#5123ff4",
10+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#ef7ea53",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#ef7ea53",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#ef7ea53",
13+
"@angular/build": "github:angular/angular-build-builds#ef7ea53",
1414
"@babel/core": "7.26.7",
1515
"@babel/generator": "7.26.5",
1616
"@babel/helper-annotate-as-pure": "7.25.9",
@@ -21,7 +21,7 @@
2121
"@babel/preset-env": "7.26.7",
2222
"@babel/runtime": "7.26.7",
2323
"@discoveryjs/json-ext": "0.6.3",
24-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#5123ff4",
24+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#ef7ea53",
2525
"@vitejs/plugin-basic-ssl": "1.2.0",
2626
"ansi-colors": "4.1.3",
2727
"autoprefixer": "10.4.20",
@@ -70,7 +70,7 @@
7070
"@angular/localize": "^19.0.0 || ^19.2.0-next.0",
7171
"@angular/platform-server": "^19.0.0 || ^19.2.0-next.0",
7272
"@angular/service-worker": "^19.0.0 || ^19.2.0-next.0",
73-
"@angular/ssr": "github:angular/angular-ssr-builds#5123ff4",
73+
"@angular/ssr": "github:angular/angular-ssr-builds#ef7ea53",
7474
"@web/test-runner": "^0.19.0",
7575
"browser-sync": "^3.0.2",
7676
"jest": "^29.5.0",
@@ -91,7 +91,7 @@
9191
"@angular/service-worker": {
9292
"optional": true
9393
},
94-
"@angular/ssr": "github:angular/angular-ssr-builds#5123ff4",
94+
"@angular/ssr": "github:angular/angular-ssr-builds#ef7ea53",
9595
"@web/test-runner": {
9696
"optional": true
9797
},

src/builders/jest/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ exports.default = (0, architect_1.createBuilder)(async (schema, context) => {
101101
tsConfig: options.tsConfig,
102102
polyfills: options.polyfills ?? ['zone.js', 'zone.js/testing'],
103103
outputPath: testOut,
104-
aot: false,
104+
aot: options.aot,
105105
index: false,
106106
outputHashing: schema_1.OutputHashing.None,
107107
outExtension: 'mjs', // Force native ESM.

src/builders/jest/schema.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* Jest target options
33
*/
44
export type Schema = {
5+
/**
6+
* Run tests using Ahead of Time compilation.
7+
*/
8+
aot?: boolean;
59
/**
610
* Globs of files to exclude, relative to the project root.
711
*/

src/builders/jest/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
"uniqueItems": true
3333
},
3434
"default": []
35+
},
36+
"aot": {
37+
"type": "boolean",
38+
"description": "Run tests using Ahead of Time compilation.",
39+
"default": false
3540
}
3641
},
3742
"additionalProperties": false,

src/utils/normalize-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
1010
exports.normalizeCacheOptions = normalizeCacheOptions;
1111
const node_path_1 = require("node:path");
1212
/** Version placeholder is replaced during the build process with actual package version */
13-
const VERSION = '19.2.0-next.1+sha-5123ff4';
13+
const VERSION = '19.2.0-next.1+sha-ef7ea53';
1414
function hasCacheMetadata(value) {
1515
return (!!value &&
1616
typeof value === 'object' &&

uniqueId

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Tue Feb 04 2025 15:29:14 GMT+0000 (Coordinated Universal Time)
1+
Tue Feb 04 2025 15:55:49 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)