@nrwl/react 15.0.0-beta.3 → 15.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [15.0.0-beta.3](https://github.com/nrwl/nx/compare/14.8.0...15.0.0-beta.3) (2022-10-11)
6
+ # [15.0.0-rc.0](https://github.com/nrwl/nx/compare/14.8.0...15.0.0-rc.0) (2022-10-12)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/react",
3
- "version": "15.0.0-beta.3",
3
+ "version": "15.0.0-rc.0",
4
4
  "private": false,
5
5
  "description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -33,15 +33,15 @@
33
33
  "dependencies": {
34
34
  "@babel/core": "^7.15.0",
35
35
  "@babel/preset-react": "^7.14.5",
36
- "@nrwl/cypress": "15.0.0-beta.3",
37
- "@nrwl/devkit": "15.0.0-beta.3",
38
- "@nrwl/jest": "15.0.0-beta.3",
39
- "@nrwl/js": "15.0.0-beta.3",
40
- "@nrwl/linter": "15.0.0-beta.3",
41
- "@nrwl/storybook": "15.0.0-beta.3",
42
- "@nrwl/web": "15.0.0-beta.3",
43
- "@nrwl/webpack": "15.0.0-beta.3",
44
- "@nrwl/workspace": "15.0.0-beta.3",
36
+ "@nrwl/cypress": "15.0.0-rc.0",
37
+ "@nrwl/devkit": "15.0.0-rc.0",
38
+ "@nrwl/jest": "15.0.0-rc.0",
39
+ "@nrwl/js": "15.0.0-rc.0",
40
+ "@nrwl/linter": "15.0.0-rc.0",
41
+ "@nrwl/storybook": "15.0.0-rc.0",
42
+ "@nrwl/web": "15.0.0-rc.0",
43
+ "@nrwl/webpack": "15.0.0-rc.0",
44
+ "@nrwl/workspace": "15.0.0-rc.0",
45
45
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
46
46
  "@svgr/webpack": "^6.1.2",
47
47
  "chalk": "4.1.0",
@@ -60,5 +60,5 @@
60
60
  "access": "public"
61
61
  },
62
62
  "types": "./index.d.ts",
63
- "gitHead": "834e2db7cb7bf9e075da45fe0334fc872bd35358"
63
+ "gitHead": "0ff93dd5f197141e15265a6d733f7b4e5e36e98e"
64
64
  }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
2
4
  "title": "Module Federation Dev Server",
3
5
  "description": "Serve a web application.",
4
6
  "cli": "nx",
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react'
2
- import { mount } from 'cypress/react'
3
2
  <%- importStatement %>
4
3
 
5
4
  <% for (let cmp of components) { %>
@@ -13,10 +12,10 @@ describe(<%= cmp.name %>.name, () => {<% if (cmp.typeName) { %>
13
12
  })
14
13
 
15
14
  it('renders', () => {
16
- mount(<<%= cmp.name %> {...props}/>)
15
+ cy.mount(<<%= cmp.name %> {...props}/>)
17
16
  })<% } else { %>
18
17
  it('renders', () => {
19
- mount(<<%= cmp.name %> />)
18
+ cy.mount(<<%= cmp.name %> />)
20
19
  })<% } %>
21
20
  })
22
21
  <% } %>
@@ -0,0 +1,42 @@
1
+ /// <reference types="cypress" />
2
+ import { mount } from 'cypress/react18'
3
+
4
+ // ***********************************************
5
+ // This example commands.ts shows you how to
6
+ // create various custom commands and overwrite
7
+ // existing commands.
8
+ //
9
+ // For more comprehensive examples of custom
10
+ // commands please read more here:
11
+ // https://on.cypress.io/custom-commands
12
+ // ***********************************************
13
+
14
+ declare global {
15
+ // eslint-disable-next-line @typescript-eslint/no-namespace
16
+ namespace Cypress {
17
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
+ interface Chainable<Subject> {
19
+ login(email: string, password: string): void;
20
+ mount: typeof mount;
21
+ }
22
+ }
23
+ }
24
+
25
+ Cypress.Commands.add('mount', mount)
26
+
27
+ //
28
+ // -- This is a parent command --
29
+ Cypress.Commands.add('login', (email, password) => {
30
+ console.log('Custom command example: Login', email, password);
31
+ });
32
+ //
33
+ // -- This is a child command --
34
+ // Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
35
+ //
36
+ //
37
+ // -- This is a dual command --
38
+ // Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
39
+ //
40
+ //
41
+ // -- This will overwrite an existing command --
42
+ // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })