Skip to content

Commit c0be95f

Browse files
committed
Fix node version
1 parent 105b40f commit c0be95f

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

angular.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@
114114
"test": {
115115
"builder": "@angular-devkit/build-angular:karma",
116116
"options": {
117-
"polyfills": ["zone.js", "zone.js/testing"],
117+
"main": "src/test.ts",
118+
"polyfills": "src/polyfills.ts",
118119
"tsConfig": "tsconfig.spec.json",
119120
"karmaConfig": "karma.conf.js",
120121
"inlineStyleLanguage": "scss",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"hwcrypto-js": true
6868
},
6969
"engines": {
70-
"node": "20.18.1",
70+
"node": "20.18.0",
7171
"npm": "10.8.0"
7272
}
7373
}

src/test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: {
11-
context(path: string, deep?: boolean, filter?: RegExp): {
12-
keys(): string[];
13-
<T>(id: string): T;
14-
};
15-
};
16-
1710
// First, initialize the Angular testing environment.
1811
getTestBed().initTestEnvironment(
1912
BrowserDynamicTestingModule,
2013
platformBrowserDynamicTesting(),
2114
);
22-
// Then we find all the tests.
23-
const context = require.context('./', true, /\.spec\.ts$/);
24-
// And load the modules.
25-
context.keys().map(context);

0 commit comments

Comments
 (0)