216 Commits

Author SHA1 Message Date
Juri
4305c5ef63 fix(testing): jest migration for Angular in 12.4 2021-08-22 12:50:47 +02:00
Jason Jean
6fbf7ffa16
feat(misc): remove ts-node, tslib, and dotenv from empty workspace package.json (#6763) 2021-08-18 17:36:11 -04:00
Gustavo Bini
572e24e466
feat(react): add --changedSince flag to jest runner (#6729) 2021-08-16 16:24:36 -04:00
Leosvel Pérez Espinosa
f3cd6028f7
fix(testing): handle migrating base jest config without projects (#6601) 2021-08-04 17:30:27 +01:00
Jack Hsu
cdb954083e
fix(web): remove unnecessary packages from being installed with @nrwl/web (#6554) 2021-07-30 15:51:43 -04:00
Jack Hsu
bd7b2aadf8
fix(testing): remove installation of babel packages for jest projects (#6546) 2021-07-30 09:36:21 -04:00
Phillip Barta
1b5498f367
feat(core): updated dotenv and switched to import 'dotenv/config' (#5615) 2021-07-29 17:49:23 -04:00
Leosvel Pérez Espinosa
9044a8f869
cleanup(misc): rename collection.json to generators.json (#6442) 2021-07-21 11:42:43 +01:00
Zachary DeRose
f0dbfb0e0c
fix(testing): fixing formatting on root jest.config migration (#6418)
* fix(testing): fixing formatting on root jest.config migration

* fix(test): rm console.log
2021-07-19 18:54:20 +00:00
Jason Jean
9c3d798ecc
fix(testing): fix getting jest config from tree when require is used (#6322) 2021-07-12 15:06:24 +00:00
Zachary DeRose
41234db93b
fix(testing): fixing migration and interop with move generator (#6323)
* fix(testing): fixing move tests and functionality

* fix(testing): fixing migration to no-op if getJestProjects() is already being used

* fix(misc): rming console.log statements
2021-07-09 23:22:55 +00:00
Zachary DeRose
2524fdbc3d
feat(testing): Using getJestProjects() out of the box (#5900)
* feat(testing): updating nx to use getJestProjects() itself

* feat(testing): using getJestProjects() for new workspaces

* feat(testing): accomodating for getJestConfig() when adding new project

* feat(testing): migration for updating the base jest.config.js

* testing...

* fix(testing): fixing formatting in tests and bumping to next version

* fix(testing): fixing broken tests

* fix(testing): fixing test for jest init

* fix(testing): removing unnecessary test in jest project

* fix(testing): updating remove generator to work with jest utility fn

* fix(testing): fixing line break on package.json

* fix(testing): fixing import statement

* fix(testing): using AST to update the jest config contents

* fix(testing): fixing snapshot tests

* fix(testing): fixing describe to 12.6

* fix(testing): adding back in import statement to jest.config.js

* fix(testing): updating generated docs
2021-07-09 16:32:01 -04:00
Miroslav Jonaš
b9d76693b9
chore(repo): update remaining jest dependencies to v27 (#6296) 2021-07-09 19:06:15 +02:00
Jonathan Cammisuli
d491b3eb66
feat(testing): add batch support for jest (#6234)
* feat(testing): add batch support for jest

* chore(testing): add missing deps

* fix(testing): properly structure the data without reduce

* fix(testing): use results.starttime instead of performance.now

* chore(testing): fix typo

* feat(testing): use overrides to pass to the jest process

* feat(testing): get all configs before building results

* feat(testing): use index to get config
2021-07-06 10:29:55 -04:00
Miroslav Jonaš
8ab463e386
cleanup(core): replace deprecated usage of appRootPath (#6241)
* cleanup(core): replace deprecated usage of appRootPath

* cleanup(core): revert migration changes
2021-07-05 15:51:19 -04:00
Zachary DeRose
4406141637
docs(misc): fixing broken links in jest executor doc page (#6175) 2021-06-30 10:07:44 -07:00
AgentEnder
3ed002f1b1 cleanup(testing): jest 27 migration misses old style astTransformers
ISSUES CLOSED: #6110
2021-06-25 17:40:12 -04:00
AgentEnder
b873688d41 cleanup(testing): additional null-check in jest migration
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

ISSUES CLOSED: #6090
2021-06-25 17:40:12 -04:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
Jason Jean
1a1039f6c6
fix(testing): fix ts-jest transformer migration (#6024) 2021-06-16 01:03:36 +00:00
Craigory V Coppola
43b3eaf0bf
chore(testing): added null check to jest migration (#6021) 2021-06-15 22:47:23 +00:00
Craigory V Coppola
f9751786c6
feat(testing): support for Jest 27 (#5873)
- Sets default testEnvironment to web
- Updates node generators to specify testEnvironment: node
- Provides migrations to update existing jest.config.js files
- Bump angular-preset-jest to latest

ISSUES CLOSED: #5771
2021-06-11 13:25:57 -05:00
Phillip Barta
a2c2d94050
feat(core): first step to common JSON behavior and common fileutils (#5859) 2021-06-09 12:45:16 +02:00
Phillip Barta
52e3083a19
feat(core): added encoding param in Tree.read() (#5668)
feat(core): added encoding param in Tree.read()
2021-05-17 21:03:04 -04:00
Leosvel Pérez Espinosa
678818a58b
feat(angular): upgrade Angular to v12.0.0-rc.3 (#5630)
* feat(angular): upgrade Angular to v12.0.0-rc.3

* feat(angular): target Nx v12.4.0-beta.0 for Angular v12.0.0-rc.0 upgrade

* fix(angular): use defaultConfiguration if no other configuration is passed

* cleanup(angular): sync migration folder name to target version

* fix(repo): creating custom schema flattener for docs

* chore(repo): amend yarn.lock

* feat(angular): update angular storybook to use webpack 5

* fix(angular): add legacy peer deps for angular+jest

* fix(angular): move migrations to 12.3.0-rc.0

Co-authored-by: Zack DeRose <zack.derose@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-05-12 12:20:12 -04:00
Jason Jean
ef442dfeaf
fix(testing): convert jest migrations to nx devkit (#5586) 2021-05-07 10:44:15 -04:00
Juri Strumpflohner
56fc0adc5d
fix(testing): adjust test-setup in Jest 6.5.5 migration (#5568) 2021-05-06 17:43:26 -04:00
Christopher Dieringer
92a92c4117
feat(testing): support test timeout argv flag (#5520)
Co-authored-by: c0d01a5 <christopher.dieringer@walmartlabs.com>
2021-04-30 19:10:13 -04:00
Juri Strumpflohner
f7bdd89e3e
fix(testing): Jest migration if globals or tsconfig is not present (#5506) 2021-04-30 09:14:16 -04:00
Zachary DeRose
65b2edf69d
feat(testing): adding getJestProjects() utility for root jest.config.js file (#5425) 2021-04-28 15:45:33 -04:00
vsavkin
85ceb3c790 fix(core): propagate sigterm and other signals correctly 2021-04-26 20:50:30 -04:00
Tasos Bekos
156e3c2c40 chore(repo): use jest-circus runner 2021-04-26 15:16:09 -04:00
Minijus L
357ecd09a4
fix(testing): update ts-jest to version 26.5.5 (#5405)
Update `jest.config.js` ts-jest section with lower-cased 'tsconfig' property as 'tsConfig' is to be deprecated in version 27.
2021-04-26 08:56:52 -04:00
Minijus L
95d1b864e2
feat(angular): add migration for jest-preset-angular 8.4.0 (#5377) 2021-04-23 13:06:08 -04:00
Ravi Rajpurohit
bc9eaedb41
feat(repo): replace tslint with eslint in recommended extensions (#5280)
* feat(repo): feat(repo): replace tslint with eslint in recommended extensions

* feat(linter): recommand eslint extension when creating a project with eslint
2021-04-22 10:34:39 -04:00
minijus
4df9b121d6 chore(angular): update jest-preset-angular to 8.4.0
Change import path and snapshotSerializers according to jest-preset-angular version 9 deprecations.
2021-04-16 09:13:09 -04:00
vsavkin
38c111ba06 chore(repo): update to nx 12 2021-04-07 12:31:23 -04:00
Tasos Bekos
01e536c6eb fix(repo): documentation generation correclty handles deprecated 2021-03-31 21:03:10 -04:00
Vivek
d1b09eaabd
cleanup(misc): make code more consistent and fix typos 2021-03-23 13:03:17 -04:00
Dmitry Zakharov
00516ecd68
fix(testing): remove jest executor error while babel-jest exists with ts-jest (#4729) (#4730) 2021-03-11 11:14:07 -05:00
Jack Hsu
ddec362a5a
fix(nextjs): update babel setup to better support next apps (#4944)
* fix(nextjs): update babel setup to better support next apps

* fix(testing): remove babel-jest.config.json used in jest.config.js

- Fix `@nrwl/web/babel` to support Jest as well
2021-03-09 21:32:36 +00:00
Vivek More
49ba90b81a cleanup(misc): use shorthand 2021-03-08 10:13:06 -05:00
Damian Bielecki
043de57626 feat(core): export jestConfigParser from jest.impl
It should allow to easily extend jest config for other purposes.
2021-02-22 11:23:25 -05:00
Jason Jean
06f84b3326
feat(react): migrate @nrwl/web schematics to devkit (#4666) 2021-02-02 18:56:35 -05:00
Victor Savkin
a25e081a84 feat(core): remove angular devkit deps 2021-01-25 12:52:30 -05:00
Jason Jean
aeec4bd4d9
feat(core): migrate move to devkit (#4558) 2021-01-19 16:45:44 -05:00
Victor Savkin
c40ce8a539 feat(testing): update cypress use nx devkit 2021-01-18 21:46:17 -05:00
Victor Savkin
1961bc97fb feat(core): support executors returning async iterators 2021-01-17 09:34:13 -05:00
Jason Jean
7482944eea feat(testing): move jest builder to devkit 2021-01-14 08:54:38 -05:00
Jason Jean
716bb44254
feat(core): migrate library to devkit (#4512)
* migrate lint

* feat(core): migrate library to devkit
2021-01-13 16:57:19 -05:00