306 Commits

Author SHA1 Message Date
Mathias Remshardt
7aaa09bfff
cleanup(node): moves some schematic helper to shared workspace rules 2020-02-26 20:19:17 -05:00
Jack Hsu
a433035eca
chore(react): update web/react dependencies and clean up npm warnings (#2547) 2020-02-25 11:03:58 -05:00
Rares Matei
4b6c8f0927
fix(testing): invalid jest config --passWithNoTests (#2442)
fix(testing): pass passWithNoTests via builder instead of jest.config.js

ISSUES CLOSED: #2345
2020-02-16 10:56:00 -05:00
Jason Jean
e5db43f92b fix(misc): loosen dependencies for angular dependencies 2020-02-16 09:59:11 -05:00
Jason Jean
fd0b192161 feat(core): update to devkit 9.0.1 2020-02-07 13:47:54 -05:00
Jason Jean
35e3be2469 feat(angular): update to angular 9.0.0 2020-02-06 15:16:21 -05:00
Jason Jean
3c6d8c67f8
feat(angular): update angular to 9-rc.14 (#2437) 2020-02-06 13:01:04 -05:00
Jason Jean
972381bc3f
feat(testing): update to jest-preset-angular v8.0.0 (#2401)
* feat(testing): update to jest-preset-angular v8.0.0 part 1

Updates to jest-preset-angular to v8.0.0, includes migrations to fix any existing projects affected
by the jest-preset-angular update.

closes #1979

* feat(testing): update jest-preset-angular to v8.0.0 part 2

Closed issues: #1979, #2165

Co-authored-by: Joshua D. Mentzer <mentzerj@trinity-health.org>

* feat(testing): update jest-preset-angular to v8.0.0 part 3

Co-authored-by: mentzerj <mentzerj@trinity-health.org>
Co-authored-by: Mehrad Rafigh <4339673+mehrad-rafigh@users.noreply.github.com>
2020-02-01 11:34:31 -05:00
Jason Jean
b6e6b3f1c3
Revert "Revert "feat(core): update to next version of angular deps"" (#2264)
This reverts commit f816fc424d4b0d850e0a49d0ed8e4a30ddca308c.
2020-01-31 13:08:50 -05:00
Jason Jean
c96bdd44b8 cleanup(testing): cleanup unused method in jest init 2020-01-29 17:43:32 -05:00
Juri
c213ae1a99 fix(misc): update package.json only if needed
Adjusts the schematic to only touch the package.json if really required

ISSUES CLOSED: #2317
2020-01-28 21:26:22 -05:00
Jonathan Cammisuli
342ee9db77 chore(misc): update tree-kill package to 1.2.2 (#2328) 2020-01-16 19:53:04 -05:00
Juri
7a9d4bde0c chore(core): update @angular-devkit/* deps to fix browserslist out of date issue
see https://github.com/angular/angular-cli/issues/16560
2020-01-15 21:10:42 -05:00
Victor Savkin
f43897978c Revert "chore(core): update @angular-devkit/* deps to fix browserslist out of date issue"
This reverts commit 3780eba421bda7f4755e6c433f1d6eba8fd86104.
2020-01-15 10:20:56 -05:00
Juri
3780eba421 chore(core): update @angular-devkit/* deps to fix browserslist out of date issue
see https://github.com/angular/angular-cli/issues/16560
2020-01-15 09:39:01 -05:00
Jonathan Cammisuli
bf56469c0a fix(testing): set NODE_ENV to 'test' when running jest 2019-12-12 11:32:19 -05:00
Victor Savkin
f816fc424d Revert "feat(core): update to next version of angular deps"
This reverts commit bd230e0530e690b2ae7896a876510f62002943c8.
2019-12-10 08:07:26 -05:00
Jason Jean
bd230e0530 feat(core): update to next version of angular deps 2019-12-08 16:16:33 -05:00
Brandon
8812ce1fe2
chore(nx): bump dependencies on Angular, Angular DevKit, and NgRx (#2002) 2019-11-07 13:57:36 -06:00
Joshua D. Mentzer
9059a9728b fix(testing): update jest builder to support testLocationInResults flag 2019-10-21 22:14:29 -04:00
Daniel Smith
19efc6d5b2 fix(testing): convert testPathPattern to an array
Per facebook/jest/#5066, the testPathPattern parameter to the CLI is an array
2019-10-15 15:37:44 -04:00
Jon
e13910d61c fix(testing): merge rather than replace ts-jest property on global config (#1896)
resolves #1059
2019-10-01 10:29:37 +01:00
Jason Jean
579a15503f fix(testing): fix the verbose option type for jest 2019-09-28 16:35:30 -04:00
Daniel Smith
ba6be8d9bb feat(testing): add support for testResultsProcessor jest option 2019-09-23 13:09:35 -04:00
Jo Pearce
0a2555c14b
fix(testing): fix the breaking jest builder spec (#1851) 2019-09-17 14:19:03 +01:00
Jo Pearce
28327d30fc
fix(testing): pass setupFilesAfterEnv to jest.runCLI rather than deprecated option (#1808)
resolves #1343
2019-09-16 16:22:09 +01:00
Jo Pearce
5de142f69f
fix(testing): merge builder globals with jest.config.js globals rather than override them completely (#1827)
Resolves #1059
2019-09-16 16:20:49 +01:00
Yannick Galatol
14da0ff4b2 fix(testing): allow support of svg templates
Angular 8 supports SVG files in addition of HTML for component templates but they were not correctly parsed by Jest. All tests including SVG templates failed as below:
```sh
    SyntaxError: /path/to/file.svg: Unexpected token (1:0)

    > 1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37.62 37.12">
```
2019-09-11 18:10:09 -04:00
Brandon Roberts
cf147cf405 chore(nx): bump Angular CLI deps to 8.3.3 2019-09-09 14:08:05 -04:00
Victor Savkin
09a94b8958 feat(nx): implement next support 2019-09-08 14:36:30 -04:00
Victor Savkin
c3f2132436 fix(testing): init the jest setup any time jest project is created 2019-09-07 17:40:25 -04:00
Brandon Roberts
0491ccc5b2 feat(nx): update to Angular 8.2, Devkit 8.3, and NgRx 8.3
Incorporates fix from https://github.com/angular/angular-cli/pull/15041
which changed the behavior of registering schematic defaults
2019-09-07 16:28:07 -04:00
Jason Jean
aecdd2bc4c fix(angular): use build-angular for linting 2019-08-09 11:15:40 -04:00
Victor Savkin
f0d9bc8cd2 fix(nx): reporters defined in jest.config.js aren't used 2019-08-07 14:04:10 -04:00
Sven Röttering
ec9ed17c9e fix(jest): change reporters option to array type
Jest expects the reporters option to be an array of strings.
2019-08-06 11:28:38 -04:00
Victor Savkin
bb858e4db9 feat(nx): add full stack preset for react/express 2019-08-01 13:26:27 -04:00
Victor Savkin
8fc5c4cae6 feat(nx): add a generic lint package that works with eslint and tslint 2019-07-25 08:34:05 -04:00
Victor Savkin
2b646f8eb4 feat(nx): standalone version of nx 2019-07-24 10:27:47 -04:00
Wes Grimes
e29f37ef22 fix(testing): disable collectCoverage by default (#1586)
* fix(testing): disable collectCoverage by default

Disabling collectCoverage by default as this causes issues with latest version of Jest

Temp fix #1531

* Adding back code coverage reporters

* feat(nx): add migration to update collectCoverage to false in jest.config.js

Added new migration script to update jest.config.js collectCoverage property to false

* refactor(nx): move migrations to @nrwl/jest

Move the collectCoverage migration to the jest package

* chore: refactor to use AST utils
2019-07-22 13:40:11 -04:00
Brandon Roberts
4f7ec84741 feat(nx): add migration to update Angular CLI devDependencies to 8.1.x
Angular CLI 8.1.x is required in order to use the --allow-dirty option.
This also covers the additional build dependencies added when generating
libraries.
2019-07-18 18:32:44 -04:00
Victor Savkin
c16f250136 feat(nx): implement global nx cli to remove the need to use yarn nx 2019-07-10 17:53:47 -04:00
Bucky Maler
1f5f0c2933 feat(testing): add findRelatedTests option to jest builder
closes #1527
2019-07-08 20:01:28 -04:00
Sven Röttering
dc556bd377 feat(testing): adding jest option testPathPattern
IntelliJ Idea passes this option to jest when running tests directly in the IDE.
2019-07-07 19:03:45 -04:00
Brian Martin
7a7ab9f231 feat(testing): adding jest options for colors, reporters, verbose, coverage, coverageReporters, and 2019-07-03 18:58:05 -04:00
Jason Jean
7a161ae6b4 chore(nx): update angular devkit to 8.0.1 2019-06-04 11:22:12 -04:00
Jason Jean
2cd4a72fe7 feat(nx): update to angular 8 2019-05-29 11:57:54 -04:00
Jason Jean
b0866f6241 fix(testing): jest should depend directly on devkit packages 2019-05-27 10:21:06 -04:00
Jason Jean
416ba048ea feat(nx): update angular to v8-rc.4 2019-05-21 12:11:38 -04:00
Victor Savkin
f007ca9d17 fix(nx): make distribution ivy-friendly 2019-05-21 11:51:40 -04:00
Victor Savkin
1055f6e4de fix(jest): remove a union type from schema in favour of number
Not all tools in the ecosystems handle union types
2019-05-16 10:04:16 -04:00