|
77 | 77 | } |
78 | 78 | }, |
79 | 79 | "test": { |
80 | | - "builder": "@angular-devkit/build-angular:karma", |
| 80 | + "builder": "@angular-builders/jest:run", |
81 | 81 | "options": { |
82 | | - "main": "src/test.ts", |
83 | | - "polyfills": "src/polyfills.ts", |
84 | | - "tsConfig": "src/tsconfig.spec.json", |
85 | | - "karmaConfig": "src/karma.conf.js", |
86 | | - "codeCoverage": true, |
87 | | - "styles": [ |
88 | | - "src/styles.scss" |
89 | | - ], |
90 | | - "scripts": [], |
91 | | - "assets": [ |
92 | | - "src/favicon.ico", |
93 | | - "src/assets" |
94 | | - ] |
| 82 | + "configPath": "../../jest.config.js", |
| 83 | + "no-cache": true |
95 | 84 | } |
96 | 85 | } |
97 | 86 | } |
98 | 87 | }, |
99 | | - "sq-ui-e2e": { |
100 | | - "root": "e2e/", |
101 | | - "projectType": "application", |
102 | | - "architect": { |
103 | | - "e2e": { |
104 | | - "builder": "@angular-devkit/build-angular:protractor", |
105 | | - "options": { |
106 | | - "protractorConfig": "e2e/protractor.conf.js" |
107 | | - }, |
108 | | - "configurations": { |
109 | | - "production": { |
110 | | - "devServerTarget": "sq-ui:serve:production" |
111 | | - }, |
112 | | - "development": { |
113 | | - "devServerTarget": "sq-ui:serve:development" |
114 | | - } |
115 | | - }, |
116 | | - "defaultConfiguration": "development" |
117 | | - } |
118 | | - } |
119 | | - }, |
120 | 88 | "ng-sq-ui": { |
121 | 89 | "root": "projects/ng-sq-ui", |
122 | 90 | "sourceRoot": "projects/ng-sq-ui/src", |
|
138 | 106 | "defaultConfiguration": "production" |
139 | 107 | }, |
140 | 108 | "test": { |
141 | | - "builder": "@angular-devkit/build-angular:karma", |
| 109 | + "builder": "@angular-builders/jest:run", |
142 | 110 | "options": { |
143 | | - "codeCoverage": true, |
144 | | - "main": "projects/ng-sq-ui/src/test.ts", |
145 | | - "tsConfig": "projects/ng-sq-ui/tsconfig.spec.json", |
146 | | - "karmaConfig": "projects/ng-sq-ui/karma.conf.js" |
| 111 | + "configPath": "../../jest.config.js", |
| 112 | + "no-cache": true |
147 | 113 | } |
148 | 114 | }, |
149 | 115 | "lint": { |
|
178 | 144 | "defaultConfiguration": "production" |
179 | 145 | }, |
180 | 146 | "test": { |
181 | | - "builder": "@angular-devkit/build-angular:karma", |
| 147 | + "builder": "@angular-builders/jest:run", |
182 | 148 | "options": { |
183 | | - "codeCoverage": true, |
184 | | - "main": "projects/ng-datetime-picker/src/test.ts", |
185 | | - "tsConfig": "projects/ng-datetime-picker/tsconfig.spec.json", |
186 | | - "karmaConfig": "projects/ng-datetime-picker/karma.conf.js" |
| 149 | + "configPath": "../../jest.config.js", |
| 150 | + "no-cache": true |
187 | 151 | } |
188 | 152 | }, |
189 | 153 | "lint": { |
|
218 | 182 | "defaultConfiguration": "production" |
219 | 183 | }, |
220 | 184 | "test": { |
221 | | - "builder": "@angular-devkit/build-angular:karma", |
| 185 | + "builder": "@angular-builders/jest:run", |
222 | 186 | "options": { |
223 | | - "codeCoverage": true, |
224 | | - "main": "projects/ng-datatable/src/test.ts", |
225 | | - "tsConfig": "projects/ng-datatable/tsconfig.spec.json", |
226 | | - "karmaConfig": "projects/ng-datatable/karma.conf.js" |
| 187 | + "configPath": "../../jest.config.js", |
| 188 | + "no-cache": true |
227 | 189 | } |
228 | 190 | }, |
229 | 191 | "lint": { |
|
258 | 220 | "defaultConfiguration": "production" |
259 | 221 | }, |
260 | 222 | "test": { |
261 | | - "builder": "@angular-devkit/build-angular:karma", |
| 223 | + "builder": "@angular-builders/jest:run", |
262 | 224 | "options": { |
263 | | - "codeCoverage": true, |
264 | | - "main": "projects/ng-sq-common/src/test.ts", |
265 | | - "tsConfig": "projects/ng-sq-common/tsconfig.spec.json", |
266 | | - "karmaConfig": "projects/ng-sq-common/karma.conf.js" |
| 225 | + "configPath": "../../jest.config.js", |
| 226 | + "no-cache": true |
267 | 227 | } |
268 | 228 | }, |
269 | 229 | "lint": { |
|
298 | 258 | "defaultConfiguration": "production" |
299 | 259 | }, |
300 | 260 | "test": { |
301 | | - "builder": "@angular-devkit/build-angular:karma", |
| 261 | + "builder": "@angular-builders/jest:run", |
302 | 262 | "options": { |
303 | | - "codeCoverage": true, |
304 | | - "main": "projects/ng-modal/src/test.ts", |
305 | | - "tsConfig": "projects/ng-modal/tsconfig.spec.json", |
306 | | - "karmaConfig": "projects/ng-modal/karma.conf.js" |
| 263 | + "configPath": "../../jest.config.js", |
| 264 | + "no-cache": true |
307 | 265 | } |
308 | 266 | }, |
309 | 267 | "lint": { |
|
339 | 297 | "defaultConfiguration": "production" |
340 | 298 | }, |
341 | 299 | "test": { |
342 | | - "builder": "@angular-devkit/build-angular:karma", |
| 300 | + "builder": "@angular-builders/jest:run", |
343 | 301 | "options": { |
344 | | - "main": "projects/ng-form-elements/src/test.ts", |
345 | | - "tsConfig": "projects/ng-form-elements/tsconfig.spec.json", |
346 | | - "karmaConfig": "projects/ng-form-elements/karma.conf.js" |
| 302 | + "configPath": "../../jest.config.js", |
| 303 | + "no-cache": true |
347 | 304 | } |
348 | 305 | } |
349 | 306 | } |
|
370 | 327 | "defaultConfiguration": "production" |
371 | 328 | }, |
372 | 329 | "test": { |
373 | | - "builder": "@angular-devkit/build-angular:karma", |
| 330 | + "builder": "@angular-builders/jest:run", |
374 | 331 | "options": { |
375 | | - "main": "projects/ng-progress-bar/src/test.ts", |
376 | | - "tsConfig": "projects/ng-progress-bar/tsconfig.spec.json", |
377 | | - "karmaConfig": "projects/ng-progress-bar/karma.conf.js" |
| 332 | + "configPath": "../../jest.config.js", |
| 333 | + "no-cache": true |
378 | 334 | } |
379 | 335 | } |
380 | 336 | } |
|
387 | 343 | }, |
388 | 344 | "@schematics/angular:directive": { |
389 | 345 | "prefix": "sq" |
| 346 | + }, |
| 347 | + "@angular-eslint/schematics:application": { |
| 348 | + "setParserOptionsProject": true |
| 349 | + }, |
| 350 | + "@angular-eslint/schematics:library": { |
| 351 | + "setParserOptionsProject": true |
390 | 352 | } |
391 | 353 | } |
392 | 354 | } |
0 commit comments