314 Commits

Author SHA1 Message Date
Tasos Bekos
ee4b2783fe fix(testing): handle cypress parameters when invoked through Angular CLI
When Cypress was invoked using `ng`, it  was throwing errors because no additional properties were allowed.
When allowed, all the extra options are passed as array in the `--` key, which is not currently handled.
This commit allows additional properties and makes sure that if any adittional options are passed they are parsed and incorporated correctly.

ISSUES CLOSED: #3571
2020-08-31 12:05:17 -04:00
Mehrad Rafigh
78ed02c2cd
feat(testing): pass reporter and reporterOptions to cypress builder (#3536) 2020-08-18 09:49:57 -04:00
Mehrad Rafigh
8a7cb350a8 feat(testing): pass ignoreTestFiles to cypress builder
ISSUES CLOSED: #3439
2020-08-13 14:15:28 -04:00
Zachary DeRose
86b4f4e7b8
fix(testing): builder should let baseUrl option take precidence if present (#3487) 2020-08-12 12:11:39 -04:00
Spencer Elliott
5b6df632cb
fix(core): resolve webpack loaders with require.resolve() (#3436)
* fix(core): resolve webpack loaders with `require.resolve()`

With strict package managers such as pnpm or Yarn PnP, transitive
dependencies are *not* hoisted to the root node_modules folder. This
means that a webpack config defined within a package like
'@nrwl/cypress' cannot resolve loaders like 'ts-loader', unless
'ts-loader' is declared in the workspace's own package.json.

This is a problem because the workspace might define a different version
of 'ts-loader', incompatible with the version declared by
'@nrwl/cypress/package.json'. The workspace should not need to declare
a dependency on 'ts-loader' anyway.

See also:
* https://github.com/pnpm/pnpm/issues/801
* https://github.com/webpack/webpack/issues/5087

* fix(core): resolve absolute 'raw-loader' path

When replacing the 'raw-loader' rule in the `getStylesPartial` function,
check for the absolute path of 'raw-loader' rather than just the name.
2020-08-08 17:53:00 -04:00
Victor Savkin
aff592b930 feat(angular): add an option to use eslint 2020-08-06 22:08:16 -04:00
Jack Hsu
ed8bd2bbe8
Revert "fix(core): resolve webpack loaders with require.resolve() (#3341)" (#3371)
This reverts commit d74ab4e9d6eae6d83c3bb76072b45f7a4c7a6305.
2020-07-20 16:24:47 -04:00
Spencer Elliott
d74ab4e9d6
fix(core): resolve webpack loaders with require.resolve() (#3341)
With strict package managers such as pnpm or Yarn PnP, transitive
dependencies are *not* hoisted to the root node_modules folder. This
means that a webpack config defined within a package like
'@nrwl/cypress' cannot resolve loaders like 'ts-loader', unless
'ts-loader' is declared in the workspace's own package.json.

This is a problem because the workspace might define a different version
of 'ts-loader', incompatible with the version declared by
'@nrwl/cypress/package.json'. The workspace should not need to declare
a dependency on 'ts-loader' anyway.

See also:
* https://github.com/pnpm/pnpm/issues/801
* https://github.com/webpack/webpack/issues/5087
2020-07-15 13:55:38 -04:00
Jason Jean
a7b7af2dfe
feat(core): switch over to angular 10 (#3056)
* feat(core): switch over to devkit 10-rc.0

* feat(core): implement solution tsconfigs wip

* feat(angular): add angular migrations

* fix(angular): modify angularjs tests
2020-07-07 17:02:06 -04:00
Jason Jean
0d9b8bb0db
fix(testing): do not add cypress-eslint-plugin if eslint not used (#3162) 2020-06-11 21:42:28 -04:00
Jonathan Cammisuli
807fd6faa1
fix(testing): use readWorkspace for getting the workspace file (#3160) 2020-06-11 14:02:21 -04:00
Devin Shoemaker
3b142691c7
fix(testing): add Cypress ESLint plugin (#2977)
This fixes linting errors when using ESLint with a Cypress project that uses JavaScript.
2020-06-10 08:35:30 -04:00
Rares Matei
5a59f090fe
fix(linter): fix exclude pattern for tslint and eslint schematics (#3113) 2020-06-05 16:04:53 -04:00
Devin Shoemaker
1f90080d67
fix(testing): fix generating cypress-project with no project specified (#2965) 2020-06-05 16:00:37 -04:00
Jack Hsu
c2b8c22555
fix(linter): remove config builder option for @nrwl/linter:lint when using eslint (#3093)
- eslint automatically detects .eslintrc files already
- removing the config option also enables nested configs
- provide a migration to remove config as long as users didn't customize it
2020-05-29 16:30:32 -04:00
Victor Savkin
a95cba3144 feat(core): support different workspace layouts 2020-05-17 16:39:14 -04:00
Jason Jean
e06822da7e
chore(repo): update prettier to v2 (#2934)
this is just for the repo, and not the workspace

Co-authored-by: Rares Matei <matei.rar@gmail.com>
2020-04-29 01:09:37 -04:00
Juri Strumpflohner
a47c24c05f
feat(react): improve storybook schematics (#2831) 2020-04-27 18:47:23 +02:00
Jason Jean
e5578076ed fix(testing): fix cypress headless mode for some versions 2020-03-31 11:24:54 -04:00
Jason Jean
09c4654ae9 fix(misc): add formatting to all migrations 2020-03-29 11:30:59 -04:00
Florian Tischler
417ff21aac
fix(testing): cypress cannot be started in chrome headless mode (#2683) 2020-03-20 15:10:19 -04:00
Jonathan Cammisuli
0f04fab0bc
feat(testing): add support for cypress 4 (#2604) 2020-03-06 10:18:10 -05:00
Mathias Remshardt
7aaa09bfff
cleanup(node): moves some schematic helper to shared workspace rules 2020-02-26 20:19:17 -05:00
Victor Savkin
d27cb3aa42
feat(misc): support customizing cypress webpack config (#2503)
Co-authored-by: Spencer Elliott <me@elliottsj.com>
2020-02-19 09:26:49 -05:00
Spencer Elliott
d1170b8e58
feat(misc): add group option to cypress builder (#2480) 2020-02-15 19:12:07 -05:00
Gaetan Paucot
e75fe50299
fix(testing): cypressconfig now propagates to cypress (#2460) 2020-02-15 19:10:38 -05:00
Benjamin Cabanes
02e95d9f8c fix(testing): cypress & fork ts checker plugin (#2316) 2020-01-23 22:10:09 -05:00
Jason Jean
6c10aa4610
feat(core): updating cypress version nrwl/cypress (#2370)
Co-authored-by: Benjamin Cabanes <contact@benjamincabanes.com>
2020-01-23 22:04:59 -05:00
Jason Jean
311685762e feat(core): generate implicit dependencies for e2e projects 2020-01-09 12:08:17 -05:00
Jack Hsu
fd47229764
feat(react): add option to generate js files instead of ts files (#2247) 2020-01-02 15:56:14 -05:00
Jason Jean
f8b3f4c3f5
fix(testing): fix cypress 8.10 migration (#2236) 2019-12-23 18:21:27 -05:00
Andrew Yang
6ef95bd454 feat(testing): add --ci-build-id option to cypress in order to make parallel work for some ci (#2218) 2019-12-19 16:07:41 -05:00
Jason Jean
34f51631bb
fix(testing): set cypress 3.6.1 migration to 8.x version (#2185) 2019-12-16 16:07:31 -05:00
Jason Jean
29176f8ac3 fix(testing): fix migration for cypress (#2141) 2019-12-06 09:53:39 -05:00
Benjamin Cabanes
093e693a01 chore(nx): cypress version update to 3.6.1 (#2109) 2019-11-30 11:10:28 -05:00
Benjamin Cabanes
08f3844007 feat(nx): cypress supportFile handling (#1920)
This update the Cypress schematic to handle by default the `supportFile` option
in `cypress.json` with an example for _custom commands_.

Related to #1609
2019-11-15 16:16:27 -05:00
Isaac Mann
c60857a6df feat(nx): storybook schematics
chore(nx): move some schematics into @nrwl/angular

    chore(nx): add e2e test

    feat(nx): add storybook schematics and builder

    test: Add tests

    test: remove test

    chore: Move some schematics into @nrwl/angular

    test: fix tests

    chore: Add e2e test

    chore: Bump storybook versions

    chore: createTestUiLib takes a libName argument

    chore: configs extend root config

    fix: Remove custom scss loader

    feat: add storybook builder

    fix: generate documentation and fix linting

    chore: Builder tests passing

    fix(nx): configuration schematic can run multiple times

    feat(nx): component story format

    docs(nx): update storybook docs

    fix(nx): pin core-js dev dependency to ^2.6.9

    chore(nx): fix formatting

    chore(nx): match core-js version for web/storybook

    chore(nx): remove storybook's angular dependencies

    chore(nx): modifyObstructiveCode to false in cypress.json

    See: https://github.com/cypress-io/cypress/issues/4042#issuecomment-487562075

    chore(nx): storybook tests --no-interactive

    chore(nx): add storybook to e2e tests

    chore(nx): reorder e2e tests
2019-10-23 17:16:19 -04:00
Thomas Skalnik
d3d5417a09 feat(testing): set transpileOnly=true ...
... and use the ForkTsCheckerWebpackPlugin
for the cypress test execution.

Closes #1871
2019-09-23 13:01:00 -04:00
Zachary Williams
5daf21152d feat(angular): fail cypress builder early if compilation error
If watch is not enabled and either the application or integration files (legacy) fail to compile,
the cypress angular builder will fail early.
2019-09-11 16:22:12 -04:00
Victor Savkin
09a94b8958 feat(nx): implement next support 2019-09-08 14:36:30 -04:00
Victor Savkin
70d71b3516 feat(nx): add support for migrations 2019-09-02 14:33:56 -04:00
Mehrad Rafigh
ff1de5b7f0 build(nx): update dependencies (#1711)
* build(nx): update husky and conventional-changelog-cli to latest version

* build(nx): update react and react-dom

update react and react-dom to 16.9.0
update @types/react to 16.9.1

* build(nx): update graphviz to 0.0.9

* build(nx): update express 4.17.1 and @types/express to 4.17.0

* build(nx): update cypress to 3.4.1
2019-08-15 11:21:33 -04:00
Victor Savkin
e29dcf904d fix(testing): remove directory x-prompt 2019-08-14 04:12:53 -04:00
Jason Jean
aecdd2bc4c fix(angular): use build-angular for linting 2019-08-09 11:15:40 -04:00
Victor Savkin
192a6a083d feat(nx): misc ux improvements 2019-07-29 09:23:51 -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
Victor Savkin
2c81cc02ed chore(nx): update cypress to 3.4 (#1605) 2019-07-22 13:40:28 -04:00
João Dias
055e8bc7b3 fix(cypress): return a non 0 exit status on failures 2019-07-07 19:02:52 -04:00
Jason Jean
889d13f3aa enhancement(testing): do not bundle node_modules for cypress files 2019-06-27 16:31:55 -04:00