Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade jest back to 24.9 with the patch to compare unit test performance #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ahayes91
Copy link
Owner

@ahayes91 ahayes91 commented Sep 7, 2020

No description provided.

@ahayes91
Copy link
Owner Author

ahayes91 commented Sep 7, 2020

On this branch:

atx-pc0b14mg:TestTimeouts hayesa2$ yarn test
yarn run v1.22.0
$ yarn lerna run test
$ /Users/hayesa2/Documents/GitHub/TestTimeouts/node_modules/.bin/lerna run test
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 6 packages: "yarn run test"
lerna info run Ran npm script 'test' in '@test/react-mocks' in 1.0s:
$ jest --passWithNoTests
No tests found, exiting with code 0
lerna info run Ran npm script 'test' in '@test/i18n' in 3.9s:
$ jest
lerna info run Ran npm script 'test' in '@test/react-utils' in 4.0s:
$ jest
lerna info run Ran npm script 'test' in '@test/core-api' in 5.5s:
$ jest
lerna info run Ran npm script 'test' in '@test/childApp' in 9.6s:
$ jest
lerna info run Ran npm script 'test' in '@test/parentApp' in 9.6s:
$ jest
lerna success run Ran npm script 'test' in 6 packages in 24.7s:
lerna success - @test/childApp
lerna success - @test/parentApp
lerna success - @test/core-api
lerna success - @test/i18n
lerna success - @test/react-mocks
lerna success - @test/react-utils
✨  Done in 25.64s.

On master:

atx-pc0b14mg:TestTimeouts hayesa2$ yarn test
yarn run v1.22.0
$ yarn lerna run test
$ /Users/hayesa2/Documents/GitHub/TestTimeouts/node_modules/.bin/lerna run test
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 6 packages: "yarn run test"
lerna info run Ran npm script 'test' in '@test/react-mocks' in 1.2s:
$ jest --passWithNoTests
No tests found, exiting with code 0
lerna info run Ran npm script 'test' in '@test/i18n' in 4.1s:
$ jest
lerna info run Ran npm script 'test' in '@test/react-utils' in 4.2s:
$ jest
lerna info run Ran npm script 'test' in '@test/core-api' in 5.8s:
$ jest
lerna info run Ran npm script 'test' in '@test/childApp' in 10.6s:
$ jest
lerna info run Ran npm script 'test' in '@test/parentApp' in 9.6s:
$ jest
lerna success run Ran npm script 'test' in 6 packages in 26.0s:
lerna success - @test/childApp
lerna success - @test/parentApp
lerna success - @test/core-api
lerna success - @test/i18n
lerna success - @test/react-mocks
lerna success - @test/react-utils
✨  Done in 26.83s.

@ahayes91
Copy link
Owner Author

ahayes91 commented Sep 7, 2020

On this branch:

atx-pc0b14mg:TestTimeouts hayesa2$ yarn test-with-memory
yarn run v1.22.0
$ node --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage
 PASS   @test/parentApp  packages/apps/parentApp/src/integrationTests/App.integration.test.js (72 MB heap size)
  ● Console

    console.error node_modules/history/warnAboutDeprecatedCJSRequire.js:17
      Warning: Please use `require("history").createHashHistory` instead of `require("history/createHashHistory")`. Support for the latter will be removed in the next major release.

 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputPanel.test.js (91 MB heap size)
  ● Console

    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

 PASS   @test/childApp  packages/apps/childApp/src/component/Branches.test.js (101 MB heap size)
  ● Console

    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.
    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputPanelLoadingState.test.js (108 MB heap size)
  ● Console

    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

 PASS   @test/childApp  packages/apps/childApp/src/component/App.test.js (101 MB heap size)
  ● Console

    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

 PASS   @test/parentApp  packages/apps/parentApp/src/components/TheRattlinBog/HeaderArea.test.js (102 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/BranchesPanel/BranchesPanel.test.js (104 MB heap size)
  ● Console

    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: <BranchesLoadingState /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
          in BranchesLoadingState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: The tag <BranchesLoadingState> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
          in BranchesLoadingState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: <BranchesEmptyState /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
          in BranchesEmptyState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: The tag <BranchesEmptyState> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
          in BranchesEmptyState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: Encountered two children with the same key, `branch.undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
          in ul (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: Encountered two children with the same key, `branch.undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
          in ul (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: <BranchesLoadingState /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
          in BranchesLoadingState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: <BranchesEmptyState /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
          in BranchesEmptyState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: Encountered two children with the same key, `branch.undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
          in ul (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel
    console.error node_modules/react-dom/cjs/react-dom.development.js:530
      Warning: Encountered two children with the same key, `branch.undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
          in ul (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

 PASS   @test/parentApp  packages/apps/parentApp/src/components/App.test.js (105 MB heap size)
  ● Console

    console.error node_modules/history/warnAboutDeprecatedCJSRequire.js:17
      Warning: Please use `require("history").createHashHistory` instead of `require("history/createHashHistory")`. Support for the latter will be removed in the next major release.

 PASS   @test/childApp  packages/apps/childApp/src/component/BranchesPanel/BranchesLoadingState.test.js (112 MB heap size)
  ● Console

    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.
    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

 PASS   @test/parentApp  packages/apps/parentApp/src/index.test.js (104 MB heap size)
  ● Console

    console.error node_modules/history/warnAboutDeprecatedCJSRequire.js:17
      Warning: Please use `require("history").createHashHistory` instead of `require("history/createHashHistory")`. Support for the latter will be removed in the next major release.

 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputPanelLoadedState.test.js (103 MB heap size)
  ● Console

    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

 PASS   @test/parentApp  packages/apps/parentApp/src/components/TheRattlinBog/TheRattlinBog.component.test.js (111 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/BranchesPanel/Branch.test.js (105 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputTextField.test.js (103 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputActionButtons.test.js (103 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/components/TheRattlinBog/Main.test.js (103 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/BranchesPanel/BranchesEmptyState.test.js (102 MB heap size)
  ● Console

    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.
    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.
    console.warn node_modules/@testing-library/jest-dom/dist/utils.js:128
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

 PASS   @test/parentApp  packages/apps/parentApp/src/components/Routes/Routes.component.test.js (102 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/reducers/hole.selector.test.js (101 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/bog.test.js (100 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/Branches.hook.test.js (102 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/limbs.selectors.test.js (106 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/userBranchInput.test.js (101 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/userBranchInput.selectors.test.js (101 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/actions/types.test.js (101 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/actions/types.test.js (101 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/limbs.test.js (101 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/sagas/index.test.js (101 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/branches.selectors.test.js (107 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/bog.selectors.test.js (101 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/branches.test.js (101 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/actions/index.test.js (102 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/branchesApi/setBranchApi.test.js (102 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/sagas/getBog.saga.test.js (103 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/api/makeTreePostRequest.test.js (103 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/reducers/bog.selector.test.js (103 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/submitBranch.hook.test.js (104 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/reducers/bog.reducer.test.js (103 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/actions/index.test.js (103 MB heap size)
 PASS   @test/i18n  packages/libs/i18n/src/intlApi.test.js (103 MB heap size)
 PASS   @test/react-utils  packages/libs/react-utils/src/keyMirror/index.test.js (104 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/holesApis/getHolesApi.test.js (105 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/treesApi/trees.test.js (105 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/branchesApi/fetchBranchesApi.test.js (105 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/axiosHelpers.test.js (105 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/limbsApi/bogApi.test.js (105 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/limbsApi/limbsInBogApi.test.js (105 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/utils/backoff.test.js (105 MB heap size)

Test Suites: 48 passed, 48 total
Tests:       173 passed, 173 total
Snapshots:   0 total
Time:        20.515s
Ran all test suites in 5 projects.
✨  Done in 21.78s.

On master:

atx-pc0b14mg:TestTimeouts hayesa2$ yarn test-with-memory
yarn run v1.22.0
$ node --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage
 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputPanel.test.js (63 MB heap size)
  ● Console

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

       8 |   it('renders input container', () => {
       9 |     const { container } = renderWithReactIntl(<InputPanel />);
    > 10 |     expect(container).not.toBeEmpty();
         |                           ^
      11 |   });
      12 | });
      13 | 

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/InputPanel/InputPanel.test.js:10:27)

 PASS   @test/childApp  packages/apps/childApp/src/component/App.test.js (80 MB heap size)
  ● Console

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      13 |     };
      14 |     const { container } = render(<App {...mockProps} />);
    > 15 |     expect(container).not.toBeEmpty();
         |                           ^
      16 |   });
      17 | });
      18 | 

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/App.test.js:15:27)

 PASS   @test/childApp  packages/apps/childApp/src/component/Branches.test.js (80 MB heap size)
  ● Console

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      43 |     useSelector.mockReturnValueOnce([]).mockReturnValueOnce(false);
      44 |     const { container } = getWrapper(props);
    > 45 |     expect(container).not.toBeEmpty();
         |                           ^
      46 |     expect(screen.getByText('MockInputPanel')).toBeInTheDocument();
      47 |   });
      48 | 

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/Branches.test.js:45:27)

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      51 |     useSelector.mockReturnValueOnce([]).mockReturnValueOnce(true);
      52 |     const { container } = getWrapper(props);
    > 53 |     expect(container).not.toBeEmpty();
         |                           ^
      54 |     expect(screen.queryByText('MockInputPanel')).not.toBeInTheDocument();
      55 |   });
      56 | });

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/Branches.test.js:53:27)

 PASS   @test/childApp  packages/apps/childApp/src/component/BranchesPanel/BranchesLoadingState.test.js (87 MB heap size)
  ● Console

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      10 |     useSelector.mockReturnValue(false);
      11 |     const { container } = renderWithReactIntl(<BranchesLoadingState />);
    > 12 |     expect(container).toBeEmpty();
         |                       ^
      13 |   });
      14 | 
      15 |   it('renders loading state when getAreBranchesLoading selector returns true', () => {

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/BranchesPanel/BranchesLoadingState.test.js:12:23)

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      18 |       <BranchesLoadingState />,
      19 |     );
    > 20 |     expect(container).not.toBeEmpty();
         |                           ^
      21 |     const loadingState = getByTestId('branchesLoadingState');
      22 |     expect(loadingState).not.toBeNull();
      23 |   });

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/BranchesPanel/BranchesLoadingState.test.js:20:27)

 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputPanelLoadingState.test.js (95 MB heap size)
  ● Console

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      17 |     useSelector.mockImplementation(() => false);
      18 |     const { container } = renderWithReactIntl(<InputPanelLoadingState />);
    > 19 |     expect(container).toBeEmpty();
         |                       ^
      20 |   });
      21 | });
      22 | 

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/InputPanel/InputPanelLoadingState.test.js:19:23)

 PASS   @test/parentApp  packages/apps/parentApp/src/integrationTests/App.integration.test.js (90 MB heap size)
  ● Console

    console.error
      Warning: Please use `require("history").createHashHistory` instead of `require("history/createHashHistory")`. Support for the latter will be removed in the next major release.

    > 1 | import createHistory from 'history/createHashHistory';
        | ^
      2 | 
      3 | export default createHistory();
      4 | 

      at printWarning (../../../node_modules/history/warnAboutDeprecatedCJSRequire.js:17:15)
      at module.exports (../../../node_modules/history/warnAboutDeprecatedCJSRequire.js:30:3)
      at Object.<anonymous> (../../../node_modules/history/createHashHistory.js:2:46)
      at Object.<anonymous> (src/history/index.js:1:1)

 PASS   @test/parentApp  packages/apps/parentApp/src/index.test.js (92 MB heap size)
  ● Console

    console.error
      Warning: Please use `require("history").createHashHistory` instead of `require("history/createHashHistory")`. Support for the latter will be removed in the next major release.

    > 1 | import createHistory from 'history/createHashHistory';
        | ^
      2 | 
      3 | export default createHistory();
      4 | 

      at printWarning (../../../node_modules/history/warnAboutDeprecatedCJSRequire.js:17:15)
      at module.exports (../../../node_modules/history/warnAboutDeprecatedCJSRequire.js:30:3)
      at Object.<anonymous> (../../../node_modules/history/createHashHistory.js:2:46)
      at Object.<anonymous> (src/history/index.js:1:1)

 PASS   @test/parentApp  packages/apps/parentApp/src/components/App.test.js (93 MB heap size)
  ● Console

    console.error
      Warning: Please use `require("history").createHashHistory` instead of `require("history/createHashHistory")`. Support for the latter will be removed in the next major release.

    > 1 | import createHistory from 'history/createHashHistory';
        | ^
      2 | 
      3 | export default createHistory();
      4 | 

      at printWarning (../../../node_modules/history/warnAboutDeprecatedCJSRequire.js:17:15)
      at module.exports (../../../node_modules/history/warnAboutDeprecatedCJSRequire.js:30:3)
      at Object.<anonymous> (../../../node_modules/history/createHashHistory.js:2:46)
      at Object.<anonymous> (src/history/index.js:1:1)

 PASS   @test/parentApp  packages/apps/parentApp/src/components/TheRattlinBog/HeaderArea.test.js (92 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/components/TheRattlinBog/TheRattlinBog.component.test.js (91 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputTextField.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputActionButtons.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/BranchesPanel/BranchesPanel.test.js (92 MB heap size)
  ● Console

    console.error
      Warning: <BranchesLoadingState /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
          in BranchesLoadingState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at createElement (../../../node_modules/react-dom/cjs/react-dom.development.js:7786:64)
      at createInstance (../../../node_modules/react-dom/cjs/react-dom.development.js:9469:20)
      at completeWork (../../../node_modules/react-dom/cjs/react-dom.development.js:21079:28)
      at completeUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24730:16)
      at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24706:12)
      at workLoopSync (../../../node_modules/react-dom/cjs/react-dom.development.js:24671:22)

    console.error
      Warning: The tag <BranchesLoadingState> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
          in BranchesLoadingState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at createElement (../../../node_modules/react-dom/cjs/react-dom.development.js:7846:9)
      at createInstance (../../../node_modules/react-dom/cjs/react-dom.development.js:9469:20)
      at completeWork (../../../node_modules/react-dom/cjs/react-dom.development.js:21079:28)
      at completeUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24730:16)
      at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24706:12)
      at workLoopSync (../../../node_modules/react-dom/cjs/react-dom.development.js:24671:22)

    console.error
      Warning: <BranchesEmptyState /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
          in BranchesEmptyState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at createElement (../../../node_modules/react-dom/cjs/react-dom.development.js:7786:64)
      at createInstance (../../../node_modules/react-dom/cjs/react-dom.development.js:9469:20)
      at completeWork (../../../node_modules/react-dom/cjs/react-dom.development.js:21079:28)
      at completeUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24730:16)
      at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24706:12)
      at workLoopSync (../../../node_modules/react-dom/cjs/react-dom.development.js:24671:22)

    console.error
      Warning: The tag <BranchesEmptyState> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
          in BranchesEmptyState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at createElement (../../../node_modules/react-dom/cjs/react-dom.development.js:7846:9)
      at createInstance (../../../node_modules/react-dom/cjs/react-dom.development.js:9469:20)
      at completeWork (../../../node_modules/react-dom/cjs/react-dom.development.js:21079:28)
      at completeUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24730:16)
      at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24706:12)
      at workLoopSync (../../../node_modules/react-dom/cjs/react-dom.development.js:24671:22)

    console.error
      Warning: Encountered two children with the same key, `branch.undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
          in ul (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at warnOnInvalidKey (../../../node_modules/react-dom/cjs/react-dom.development.js:15131:11)
      at reconcileChildrenArray (../../../node_modules/react-dom/cjs/react-dom.development.js:15164:21)
      at reconcileChildFibers (../../../node_modules/react-dom/cjs/react-dom.development.js:15598:14)
      at reconcileChildren (../../../node_modules/react-dom/cjs/react-dom.development.js:18089:28)
      at updateHostComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:18611:3)
      at beginWork$1 (../../../node_modules/react-dom/cjs/react-dom.development.js:20193:14)

    console.error
      Warning: Encountered two children with the same key, `branch.undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
          in ul (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at warnOnInvalidKey (../../../node_modules/react-dom/cjs/react-dom.development.js:15131:11)
      at reconcileChildrenArray (../../../node_modules/react-dom/cjs/react-dom.development.js:15164:21)
      at reconcileChildFibers (../../../node_modules/react-dom/cjs/react-dom.development.js:15598:14)
      at reconcileChildren (../../../node_modules/react-dom/cjs/react-dom.development.js:18089:28)
      at updateHostComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:18611:3)
      at beginWork$1 (../../../node_modules/react-dom/cjs/react-dom.development.js:20193:14)

    console.error
      Warning: <BranchesLoadingState /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
          in BranchesLoadingState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at createElement (../../../node_modules/react-dom/cjs/react-dom.development.js:7786:64)
      at createInstance (../../../node_modules/react-dom/cjs/react-dom.development.js:9469:20)
      at completeWork (../../../node_modules/react-dom/cjs/react-dom.development.js:21079:28)
      at completeUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24730:16)
      at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24706:12)
      at workLoopSync (../../../node_modules/react-dom/cjs/react-dom.development.js:24671:22)

    console.error
      Warning: <BranchesEmptyState /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
          in BranchesEmptyState (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at createElement (../../../node_modules/react-dom/cjs/react-dom.development.js:7786:64)
      at createInstance (../../../node_modules/react-dom/cjs/react-dom.development.js:9469:20)
      at completeWork (../../../node_modules/react-dom/cjs/react-dom.development.js:21079:28)
      at completeUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24730:16)
      at performUnitOfWork (../../../node_modules/react-dom/cjs/react-dom.development.js:24706:12)
      at workLoopSync (../../../node_modules/react-dom/cjs/react-dom.development.js:24671:22)

    console.error
      Warning: Encountered two children with the same key, `branch.undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
          in ul (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at warnOnInvalidKey (../../../node_modules/react-dom/cjs/react-dom.development.js:15131:11)
      at reconcileChildrenArray (../../../node_modules/react-dom/cjs/react-dom.development.js:15164:21)
      at reconcileChildFibers (../../../node_modules/react-dom/cjs/react-dom.development.js:15598:14)
      at reconcileChildren (../../../node_modules/react-dom/cjs/react-dom.development.js:18089:28)
      at updateHostComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:18611:3)
      at beginWork$1 (../../../node_modules/react-dom/cjs/react-dom.development.js:20193:14)

    console.error
      Warning: Encountered two children with the same key, `branch.undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
          in ul (created by BranchesPanel)
          in section (created by ForwardRef(Grid))
          in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
          in WithStyles(ForwardRef(Grid)) (created by BranchesPanel)
          in BranchesPanel

      at warningWithoutStack (../../../node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (../../../node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at warnOnInvalidKey (../../../node_modules/react-dom/cjs/react-dom.development.js:15131:11)
      at reconcileChildrenArray (../../../node_modules/react-dom/cjs/react-dom.development.js:15164:21)
      at reconcileChildFibers (../../../node_modules/react-dom/cjs/react-dom.development.js:15598:14)
      at reconcileChildren (../../../node_modules/react-dom/cjs/react-dom.development.js:18089:28)
      at updateHostComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:18611:3)
      at beginWork$1 (../../../node_modules/react-dom/cjs/react-dom.development.js:20193:14)

 PASS   @test/childApp  packages/apps/childApp/src/component/BranchesPanel/Branch.test.js (102 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/BranchesPanel/BranchesEmptyState.test.js (90 MB heap size)
  ● Console

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      11 |     useSelector.mockReturnValue(false);
      12 |     const { container } = renderWithReactIntl(<BranchesEmptyState />);
    > 13 |     expect(container).toBeEmpty();
         |                       ^
      14 |   });
      15 | 
      16 |   it('renders empty state when getShowEmptyState selector returns true and getShowBranchesUnavailableState selector returns false', () => {

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/BranchesPanel/BranchesEmptyState.test.js:13:23)

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      17 |     useSelector.mockReturnValueOnce(true).mockReturnValueOnce(false);
      18 |     const { container } = renderWithReactIntl(<BranchesEmptyState />);
    > 19 |     expect(container).not.toBeEmpty();
         |                           ^
      20 |     expect(screen.getByText('No Branches Yet')).toBeInTheDocument();
      21 |     expect(
      22 |       screen.getByText('To add branches to this tree, start typing below.'),

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/BranchesPanel/BranchesEmptyState.test.js:19:27)

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      27 |     useSelector.mockReturnValueOnce(false).mockReturnValueOnce(true);
      28 |     const { container } = renderWithReactIntl(<BranchesEmptyState />);
    > 29 |     expect(container).not.toBeEmpty();
         |                           ^
      30 |     expect(screen.getByText('Branches are not available')).toBeInTheDocument();
      31 |     expect(
      32 |       screen.getByText('The branch is no longer on your tree.'),

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/BranchesPanel/BranchesEmptyState.test.js:29:27)

 PASS   @test/parentApp  packages/apps/parentApp/src/components/TheRattlinBog/Main.test.js (91 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/components/Routes/Routes.component.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/submitBranch.hook.test.js (85 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/api/makeTreePostRequest.test.js (85 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/reducers/bog.selector.test.js (84 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/reducers/bog.reducer.test.js (85 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/actions/index.test.js (84 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/InputPanel/InputPanelLoadedState.test.js (93 MB heap size)
  ● Console

    console.warn
      Warning: toBeEmpty has been deprecated and will be removed in future updates. Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.

      17 |     useSelector.mockImplementation(() => true);
      18 |     const { container } = renderWithReactIntl(<InputPanelLoadedState />);
    > 19 |     expect(container).toBeEmpty();
         |                       ^
      20 |   });
      21 | });
      22 | 

      at deprecate (../../../node_modules/@testing-library/jest-dom/dist/utils.js:128:11)
      at Object.toBeEmpty (../../../node_modules/@testing-library/jest-dom/dist/to-be-empty.js:11:24)
      at __EXTERNAL_MATCHER_TRAP__ (../../../node_modules/expect/build/index.js:342:30)
      at Object.toBeEmpty (../../../node_modules/expect/build/index.js:343:15)
      at Object.<anonymous> (src/component/InputPanel/InputPanelLoadedState.test.js:19:23)

 PASS   @test/core-api  packages/libs/core-api/src/api/branchesApi/setBranchApi.test.js (83 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/treesApi/trees.test.js (84 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/limbsApi/bogApi.test.js (83 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/branchesApi/fetchBranchesApi.test.js (84 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/holesApis/getHolesApi.test.js (84 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/axiosHelpers.test.js (84 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/api/limbsApi/limbsInBogApi.test.js (85 MB heap size)
 PASS   @test/core-api  packages/libs/core-api/src/utils/backoff.test.js (83 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/component/Branches.hook.test.js (88 MB heap size)
 PASS   @test/react-utils  packages/libs/react-utils/src/keyMirror/index.test.js (84 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/sagas/getBog.saga.test.js (88 MB heap size)
 PASS   @test/i18n  packages/libs/i18n/src/intlApi.test.js (84 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/branches.selectors.test.js (92 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/sagas/index.test.js (89 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/actions/index.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/bog.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/limbs.selectors.test.js (88 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/reducers/hole.selector.test.js (88 MB heap size)
 PASS   @test/parentApp  packages/apps/parentApp/src/actions/types.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/userBranchInput.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/userBranchInput.selectors.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/actions/types.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/branches.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/bog.selectors.test.js (88 MB heap size)
 PASS   @test/childApp  packages/apps/childApp/src/reducers/limbs.test.js (88 MB heap size)

Test Suites: 48 passed, 48 total
Tests:       173 passed, 173 total
Snapshots:   0 total
Time:        21.517 s, estimated 143 s
Ran all test suites in 5 projects.
✨  Done in 22.60s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant