74 Commits

Author SHA1 Message Date
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
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
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
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
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
Jason Jean
b6170bdb17 feat(nx): update angular to v8 (#1334)
feat(nx): update angular to v8
2019-05-10 12:09:47 -04:00
Victor Savkin
b5f1966ca5 refactor(nx): extract workspace creation into @nrwl/workspace 2019-04-21 09:46:21 -04:00
Jason Jean
9bbb69d40f refactor(frontend): refactor angular to @nrwl/angular 2019-04-18 15:25:06 -04:00
Jason Jean
625b2837a8 refactor(testing): separate jest to @nrwl/jest 2019-04-16 13:10:49 -04:00