Skip to content

Commit b384a4b

Browse files
fix(search-client): changes in angular.json
changes in angular.json GH-64
1 parent d5ef191 commit b384a4b

File tree

4 files changed

+15
-18
lines changed

4 files changed

+15
-18
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,5 @@ jobs:
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

packages/search/angular.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@
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
}

packages/search/projects/search-lib/src/test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// https://opensource.org/licenses/MIT
55
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
66
import 'zone.js';
7+
import 'zone.js/testing';
78
import {getTestBed} from '@angular/core/testing';
89
import {
910
BrowserDynamicTestingModule,
@@ -24,7 +25,8 @@ declare const require: {
2425
// First, initialize the Angular testing environment.
2526
getTestBed().initTestEnvironment(
2627
BrowserDynamicTestingModule,
27-
platformBrowserDynamicTesting(), {
28-
teardown: { destroyAfterEach: false }
29-
},
28+
platformBrowserDynamicTesting(),
29+
{
30+
teardown: {destroyAfterEach: false},
31+
},
3032
);

packages/search/projects/search-lib/tsconfig.spec.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
]
99
},
1010
"files": [
11-
"src/test.ts"
11+
"src/test.ts",
12+
"src/polyfills.ts"
1213
],
1314
"include": [
1415
"**/*.spec.ts",

0 commit comments

Comments
 (0)