File tree Expand file tree Collapse file tree 4 files changed +15
-18
lines changed
Expand file tree Collapse file tree 4 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 2323 if : steps.cache-nodemodules.outputs.cache-hit != 'true'
2424 run : npm ci --ignore-scripts
2525
26- - name : Install Lerna
27- run :
npm i -g [email protected] --ignore-scripts 28-
29- - name : Bootstrap Monorepo
30- run : lerna bootstrap --ignore-scripts
31-
3226 - name : Run test
33- run : lerna run test
27+ run : npm run test --workspaces --if-present
Original file line number Diff line number Diff line change 103103 "test" : {
104104 "builder" : " @angular-devkit/build-angular:karma" ,
105105 "options" : {
106- "main" : " projects/search-element /src/test.ts" ,
107- "polyfills" : " projects/search-element /src/polyfills.ts" ,
108- "tsConfig" : " projects/search-element /tsconfig.spec.json" ,
109- "karmaConfig" : " projects/search-element /karma.conf.js" ,
106+ "main" : " projects/search-lib /src/test.ts" ,
107+ "polyfills" : " projects/search-lib /src/polyfills.ts" ,
108+ "tsConfig" : " projects/search-lib /tsconfig.spec.json" ,
109+ "karmaConfig" : " projects/search-lib /karma.conf.js" ,
110110 "inlineStyleLanguage" : " scss" ,
111111 "assets" : [
112- " projects/search-element /src/favicon.ico" ,
113- " projects/search-element /src/assets"
112+ " projects/search-lib /src/favicon.ico" ,
113+ " projects/search-lib /src/assets"
114114 ],
115- "styles" : [" projects/search-element /src/styles.scss" ],
115+ "styles" : [" projects/search-lib /src/styles.scss" ],
116116 "scripts" : []
117117 }
118118 }
Original file line number Diff line number Diff line change 44// https://opensource.org/licenses/MIT
55// This file is required by karma.conf.js and loads recursively all the .spec and framework files
66import 'zone.js' ;
7+ import 'zone.js/testing' ;
78import { getTestBed } from '@angular/core/testing' ;
89import {
910 BrowserDynamicTestingModule ,
@@ -24,7 +25,8 @@ declare const require: {
2425// First, initialize the Angular testing environment.
2526getTestBed ( ) . initTestEnvironment (
2627 BrowserDynamicTestingModule ,
27- platformBrowserDynamicTesting ( ) , {
28- teardown : { destroyAfterEach : false }
29- } ,
28+ platformBrowserDynamicTesting ( ) ,
29+ {
30+ teardown : { destroyAfterEach : false } ,
31+ } ,
3032) ;
Original file line number Diff line number Diff line change 88 ]
99 },
1010 "files" : [
11- " src/test.ts"
11+ " src/test.ts" ,
12+ " src/polyfills.ts"
1213 ],
1314 "include" : [
1415 " **/*.spec.ts" ,
You can’t perform that action at this time.
0 commit comments