Skip to content

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Aug 13, 2024

Replace enzyme with @testing-library/react in tests.

  • tests/FixedColumn-IE.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • package.json
    • Remove enzyme, enzyme-adapter-react-16, and enzyme-to-json from devDependencies
  • tests/Cell.spec.tsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/classComponent.spec.tsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/Colgroup.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/Deprecated.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/ExpandRow.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/FixedColumn.spec.tsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/FixedHeader.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/GroupingColumns.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/Hover.spec.tsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/Internal.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/Scroll.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/Sticky.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/Summary.spec.tsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/Table.spec.jsx
    • Replace mount with render from @testing-library/react
    • Update test cases to use @testing-library/react methods
  • tests/setup.ts
    • Remove enzyme configuration

For more details, open the Copilot Workspace session.

Replace `enzyme` with `@testing-library/react` in tests.

* **tests/FixedColumn-IE.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **package.json**
  - Remove `enzyme`, `enzyme-adapter-react-16`, and `enzyme-to-json` from `devDependencies`
* **tests/Cell.spec.tsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/classComponent.spec.tsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/Colgroup.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/Deprecated.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/ExpandRow.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/FixedColumn.spec.tsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/FixedHeader.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/GroupingColumns.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/Hover.spec.tsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/Internal.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/Scroll.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/Sticky.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/Summary.spec.tsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/Table.spec.jsx**
  - Replace `mount` with `render` from `@testing-library/react`
  - Update test cases to use `@testing-library/react` methods
* **tests/setup.ts**
  - Remove `enzyme` configuration

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/react-component/table?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Aug 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 13, 2024 1:38pm

@zombieJ zombieJ closed this Aug 13, 2024
@zombieJ zombieJ deleted the zombieJ/replace-enzyme-with-testing-library branch August 13, 2024 13:53
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.

1 participant