306 Commits

Author SHA1 Message Date
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00:00
K. Golbang
cd8c9b0313
feat(testing): support for memory leaks detection for jest added [logHeapUsage, detectLeaks] (#9339) 2022-03-18 16:10:28 -04:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Victor Savkin
4e9375f5f4 chore(repo): update the version of nx 2022-03-11 10:40:40 -05:00
Miroslav Jonaš
ca38be735d
chore(core): add type for hasher filter to avoid typos (#9287) 2022-03-11 14:54:21 +01:00
Victor Savkin
a32d46c5a3 feat(core): provide an experimental hashing mode for jest and cyrpess 2022-03-10 21:16:58 -05:00
Jason Jean
94687e993c
chore(repo): ensure license file exists for all published packages (#9274) 2022-03-10 18:33:06 -05:00
Leosvel Pérez Espinosa
cf7a18bd14
fix(angular): prevent adding dependencies when generating apps and specifying skipPackageJson (#8806) 2022-02-01 16:32:47 -05:00
Victor Savkin
298ceba5b3
chore(repo): readme fixes 2022-01-24 09:39:31 -05:00
Victor Savkin
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
kpaxton
93095f561a
fix(testing): fix jest migrate 13.4.4 script handling missing transform property (#8595)
Fix issue for migrating jest plugin to 13.4.4 when the projects
 may have a custom preset that
excludes the transform property
 from the jest.config.js.
 Just adds an if statement around the
loop for the transform property

ISSUES CLOSED: #8566
2022-01-19 10:05:11 -05:00
Chau Tran
978cfe942d
fix(testing): turn swc/jest back on for react, web, and js (#8464) 2022-01-11 09:28:30 -05:00
Caleb Ukle
baf44ad662
fix(testing): Create root babel config if one isn't present (#7816)
* fix(testing): create root babel config for babel-jest option

when creating a jest project with babel-jest a root babel.config.json file will be create if one

doesn't exist and babel deps install for allowing jest tests to run successfully

ISSUES CLOSED: #6782

* feat(testing): add migration for missing root babel config
2022-01-07 17:05:32 -05:00
Phillip Barta
8abcaab7c3
fix(misc): dont publish jest.config.js files (#8341) 2022-01-07 14:10:24 -05:00
Chau Tran
214ef8ac4f chore(testing): adjust tests that are affected by removing swc 2021-12-23 19:56:58 -05:00
Chau Tran
f97961d865 fix(testing): remove 'swc' from compiler option for jest generators
@swc/jest is not currently working as it's supposed to. at least, with single .swcrc file.
2021-12-23 19:56:58 -05:00
Chau Tran
d6d56c7c4e chore(js): adjust unit test 2021-12-23 19:56:58 -05:00
Chau Tran
fba478c362 fix(js): use ts-jest for compiler SWC due to known bug in SWC 2021-12-23 19:56:58 -05:00
Phillip Barta
e57cef0901
cleanup(repo): use devkit instead of devkit reexports from workspace (#7773) 2021-12-21 21:06:31 +00:00
Victor Savkin
88751a3685 chore(repo): clean up the language to match the new tag line 2021-12-17 16:08:38 -05:00
Jack Hsu
6d6f29439d
feat(testing): add --compiler=tsc|swc|babel option for jest project generator (#8177) 2021-12-15 14:27:53 +00:00
Jack Hsu
157c6e0fb0
feat(web): rename @nrwl/web:build to @nrwl/web:webpack (#7952) 2021-11-30 14:22:34 -05:00
James Henry
98ffe8574b feat(linter): support eslint v8 (#7800)
* feat(core): support eslint v8

* fix(core): align version of eslint across all packages
2021-11-19 14:55:33 -05:00
Colum Ferry
d110bc77c0
chore(angular): bump ngrx to 13.0.0 (#7765)
* chore(angular): bump ngrx to 13.0.0

* fix(angular): add path filter to resolver for exports

* fix(testing): add mjs to jest module extensions and add dependency on resolve.exports

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-11-18 10:06:30 +00:00
Jason Jean
18f2e703dd
fix(angular): remove unnecessary addition of module file extensions (#7725) 2021-11-12 16:36:59 -05:00
Caleb Ukle
4c4a5039e8
fix(testing): update tsconfig migration to not warn when no file found (#7689)
* fix(testing): update tsconfig migration to not warn when no file found

use tsconfig.json references to find what other configs need to be updated. if non when we just exit

* fix(testing): update tests for migration changes

* fix(testing): include any spec. file names in pattern match

accounting for _spec. file names when generating 'test' pattern equivalents

* fix(testing): remove relance on tsconfig.references, walk for all tsconfigs to update

tsconfig.references is not always present. instead visit all files and check if they are tsconfig
json file. if so we update the include/exclude properties where a spec. pattern is found. if the
property isn't set then we do not update it.

* fix(testing): stream line update with devkit
2021-11-11 22:53:17 +00:00
AgentEnder
f6a562d1ec chore(repo): migrate to v13.1.4 2021-11-11 15:12:06 -05:00
Colum Ferry
85692e488d
chore(angular): bump jest-preset-angular to rc.3 (#7687)
* chore(angular): bump jest-preset-angular to rc.3

* fix(angular): version string typo

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>

* fix(angular): add mjs to angular jest module extensions

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2021-11-10 14:24:05 +00:00
Jason Jean
e0f08096c4
fix(testing): fix resolver to try using default resolution before using a package filter (#7681) 2021-11-10 09:50:36 +00:00
Jason Jean
f9d9e26882
fix(angular): do not ignore any mjs files for jest (#7670) 2021-11-09 13:44:52 -05:00
Matt
965b11679f
feat(testing): add --testPathIgnorePatterns flag support (#7478)
closes #7462

Co-authored-by: Matt <MattGson>
2021-11-08 13:42:44 -05:00
Colum Ferry
8d6ac4f694
chore(angular): support angular 13 (#7161)
* chore(angular): support angular 13

Support Angular 13

chore(angular): support ng 13 next 11

chore(angular): upgrade tslib dep

chore(angular): update package and ng-packagr-lite executors to align with ng-packagr v13

chore(angular): update test snapshots with ts version

fix(angular): buildable lib tsconfig transform test

* chore(angular): sync ng-packagr changes to the package and ng-packagr-lite executors

* chore(angular): add migrations

* chore(angular): rxjs7

* feat(angular): check rxjs version to install

* feat(angular): update jest resolver to resolve esm

* chore(angular): fix version

* chore(angular): support jest-preset-angular

* fix(angular): tests

* fix(angular): fix e2e tests and add .angular to gitignore

* fix(angular): fix jest transformers ignore pattern

* fix(angular): fix node test

* fix(angular): fix workspace test

* fix(angular): import marble utils from jasmine-marbles instead of @nrwl/angular/testing

* feat(angular): update ngrx to 13.0.0-beta.;0

* fix(angular): temporarily skip test with pnpm

* fix(angular): bump jest-preset-angular to fix jest performance issues

* fix(angular): webpack-browser and server schema changes

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-11-08 12:01:55 -05:00
Caleb Ukle
0ca5a88bf1
fix(testing) generated jest ts configs mismatch (#7556)
* fix(testing): add .test. files to spec tsconfig template

add support for .test.ts and with supportTsx .test.{js|tsx|jsx} files
in the tsconfig.spec.json template.

Note each package that excludes testing files will need to be updated to
exclude the new files (coming in future commits)

* fix(angular): add .test.ts support in tsconfigs

add .test.ts in angular jest template
update angular generators to exclude test files

* fix(gatsby): add .test. file prefixes to tsconfig ignore

ignore the new .test.{js|ts|jsx|tsx} files added to jest configs

* fix(react): add .test. file prefix to app/lib tsconfigs

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

* fix(node): add .test. file prefix to app/lib tsconfig

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

ISSUES CLOSED: #7263

* fix(nest): update tests for new .test.ts files in tsconfig

update tests to account for changes in node generators which add .test.ts to the exclude of
tsconfigs

* fix(express): update tests to account for new tsconfig changes

updated snapshots
added new patterns for tsconfig

* fix(linter): update snapshots for new tsconfig changes

snapshot updated to include new .test.ts file changes for tsconfig

* fix(node): update testing to account for spec tsconfig changes

add .test.ts files in e2e tests

* fix(testing): add migration for tsconfig changes

initial migration and test for tsconfig changes

* chore(testing): add to migrations collection

add the update-ts-config-for-test-filenames to migrations

* fix(testing): fix filesystem issue with jest tests

mock readConfig to always return an basic config to prevent issues of not finding a config in non
linux environments, aka missing /root

* cleanup(testing): update error message

update message logged when tsconfig isn't found to mention what was trying to be accompished so it
can be manually updated if desired.
2021-11-05 14:25:25 -05:00
Jack Hsu
75513d6f8b
chore(repo): add tests to make sure migration factory/implementation are correct (#7541) 2021-10-27 16:12:07 -04:00
Craigory Coppola
79cf69b4e4
feat(core): consolidate nx.json and workspace.json (#6642)
* feat(core): consolidate settings between workspace.json + nx.json

workspace.json (and linked project.json files) now contain all project specific settings.
nx.json now contains all settings that affect the whole workspace.

* chore(core): fix angular unit tests w/ new config

* chore(core): fix failing tests

* chore(core): fix formatting

* chore(core): fix more tests

* chore(core): normalize-nx-json feedback

* chore(core): Fix more unit tests

* chore(core): fix remaining tests in workspace

* chore(linter): fix remaining linter tests

* chore(core): fix remaining spec + build issues

* chore(core): formatting fixes

* feat(core): migration script to move config options to new locations

* chore(core): fix e2e tests

* chore(core): run format

* chore(react-native): fix failing tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): move properties to new location during format step

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): initial pass on ngcli-adapter for property consolidation

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(misc): fix tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* docs(core): update docs with changes

* chore(misc): fix tests

* chore(core): code review changes

updateWorkspaceJson -> updateWorkspace, no longer uses updater function

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix bug in ngcli impl

* fix(core): fix bug in ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* fix(core): fix ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix workspace e2e

* chore(core): fix nx-plugin e2e

* fix(core): move defaultProject to nx.json

* chore(core): fix broken workspace test

* chore(core): formatting

* chore(core): fix workspace format

* chore(core): add nxJson to ExecutorContext

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): remove all references ot `NxProjectConfiguration` from our code

* chore(core): Review Changes

* fix(core): update new config locations v13 migration
2021-10-14 10:42:47 -04:00
Minijus L
da658e10a7
fix(testing): update Jest to 27.2.x (#7101) 2021-09-30 16:46:45 -04:00
Victor Savkin
d79bba3630 chore(repo): update to nx 12.10 2021-09-20 16:39:13 -04:00
Andrew Luca
fe7c25d00f
chore(misc): add repository directory for all packages.json (#6973) 2021-09-15 11:53:08 -04:00
Craigory Coppola
25519a91ad
fix(testing): fix(testing): support for typescript jest configs (#6920)
ISSUES CLOSED: #5394
2021-09-03 14:40:56 -04:00
Juri
4305c5ef63 fix(testing): jest migration for Angular in 12.4 2021-08-22 12:50:47 +02:00
AgentEnder
c9c8fa7f1c chore(core): project.json should not be included in builds
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-08-20 20:22:30 -04: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