Skip to content

Commit f74d5c0

Browse files
Hristo HristovHristo Hristov
authored andcommitted
fix(cli): add node options for ng test command to package json files
1 parent 2c9a954 commit f74d5c0

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

packages/cli/templates/angular/ig-ts/projects/empty/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "ng serve",
77
"build": "ng build",
88
"watch": "ng build --watch --configuration development",
9-
"test": "ng test"
9+
"test": "NODE_OPTIONS='--max-old-space-size=6000' node node_modules/@angular/cli/bin/ng test"
1010
},
1111
"private": true,
1212
"dependencies": {

packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
- run: npm i # replace with 'npm ci' after committing lock file from first install
3333
- run: npm run lint
3434
- run: npm run build
35-
- run: NODE_OPTIONS="--max-old-space-size=6000" npm run test -- --watch=false --browsers ChromeHeadless
35+
- run: npm run test -- --watch=false --browsers ChromeHeadless

packages/igx-templates/igx-ts-legacy/projects/_base/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "ng serve -o",
77
"build": "ng build",
88
"watch": "ng build --watch --configuration development",
9-
"test": "ng test",
9+
"test": "NODE_OPTIONS='--max-old-space-size=6000' node node_modules/@angular/cli/bin/ng test",
1010
"lint": "ng lint"
1111
},
1212
"private": true,

packages/igx-templates/igx-ts-legacy/projects/_base_with_home/files/__dot__github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
- run: npm i # replace with 'npm ci' after committing lock file from first install
3333
- run: npm run lint
3434
- run: npm run build
35-
- run: NODE_OPTIONS="--max-old-space-size=6000" npm run test -- --watch=false --browsers ChromeHeadless
35+
- run: npm run test -- --watch=false --browsers ChromeHeadless

packages/igx-templates/igx-ts-legacy/projects/side-nav-auth/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "ng serve -o",
77
"build": "ng build",
88
"watch": "ng build --watch --configuration development",
9-
"test": "ng test",
9+
"test": "NODE_OPTIONS='--max-old-space-size=6000' node node_modules/@angular/cli/bin/ng test",
1010
"lint": "ng lint"
1111
},
1212
"private": true,

packages/igx-templates/igx-ts/projects/_base/files/__dot__github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
- run: npm i # replace with 'npm ci' after committing lock file from first install
3333
- run: npm run lint
3434
- run: npm run build
35-
- run: NODE_OPTIONS="--max-old-space-size=6000" npm run test -- --watch=false --browsers ChromeHeadless
35+
- run: npm run test -- --watch=false --browsers ChromeHeadless

packages/igx-templates/igx-ts/projects/_base/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "ng serve -o",
77
"build": "ng build",
88
"watch": "ng build --watch --configuration development",
9-
"test": "ng test",
9+
"test": "NODE_OPTIONS='--max-old-space-size=6000' node node_modules/@angular/cli/bin/ng test",
1010
"lint": "ng lint"
1111
},
1212
"private": true,

packages/igx-templates/igx-ts/projects/_base_with_home/files/__dot__github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
- run: npm i # replace with 'npm ci' after committing lock file from first install
3333
- run: npm run lint
3434
- run: npm run build
35-
- run: NODE_OPTIONS="--max-old-space-size=6000" npm run test -- --watch=false --browsers ChromeHeadless
35+
- run: npm run test -- --watch=false --browsers ChromeHeadless

packages/igx-templates/igx-ts/projects/side-nav-auth/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "ng serve -o",
77
"build": "ng build",
88
"watch": "ng build --watch --configuration development",
9-
"test": "ng test",
9+
"test": "NODE_OPTIONS='--max-old-space-size=6000' node node_modules/@angular/cli/bin/ng test",
1010
"lint": "ng lint"
1111
},
1212
"private": true,

0 commit comments

Comments
 (0)