File tree Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 6767 "hwcrypto-js" : true
6868 },
6969 "engines" : {
70- "node" : " 20.18.1 " ,
70+ "node" : " 20.18.0 " ,
7171 "npm" : " 10.8.0"
7272 }
7373}
Original file line number Diff line number Diff 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.
1811getTestBed ( ) . initTestEnvironment (
1912 BrowserDynamicTestingModule ,
2013 platformBrowserDynamicTesting ( ) ,
2114) ;
22- // Then we find all the tests.
23- const context = require . context ( './' , true , / \. s p e c \. t s $ / ) ;
24- // And load the modules.
25- context . keys ( ) . map ( context ) ;
You can’t perform that action at this time.
0 commit comments