Skip to content

Commit

Permalink
Bump @testing-library/jest-dom from 5.17.0 to 6.0.0 (#526)
Browse files Browse the repository at this point in the history
Bumps
[@testing-library/jest-dom](https://github.com/testing-library/jest-dom)
from 5.17.0 to 6.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/testing-library/jest-dom/releases"><code>@​testing-library/jest-dom</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v6.0.0</h2>
<h1><a
href="https://github.com/testing-library/jest-dom/compare/v5.17.0...v6.0.0">6.0.0</a>
(2023-08-13)</h1>
<h3>Features</h3>
<ul>
<li>local types, supporting jest, <code>@​jest/globals</code>, vitest
(<a
href="https://redirect.github.com/testing-library/jest-dom/issues/511">#511</a>)
(<a
href="https://github.com/testing-library/jest-dom/commit/4b764b9f6a7b564d7f8ec0e9b0c6ba9cc875f2b8">4b764b9</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<ul>
<li>Removes the extend-expect script. Users should use
the default import path or one of the new test platform-specific
paths to automatically extend the appropriate &quot;expect&quot;
instance.</li>
</ul>
<p>extend-expect was not documented in the Readme, so this change should
have minimal impact.</p>
<p>Users can now use the following import paths to automatically extend
&quot;expect&quot; for their chosen test platform:</p>
<ul>
<li><code>@​testing-library/jest-dom</code> - jest
(<code>@​types/jest</code>)</li>
<li><code>@​testing-library/jest-dom/</code>jest-globals -
<code>@​jest/globals</code></li>
<li><code>@​testing-library/jest-dom/</code>vitest - vitest</li>
</ul>
<p>For example:</p>
<p>import '<code>@​testing-library/jest-dom/</code>jest-globals'</p>
<p>Importing from one of the above paths will augment the appropriate
matcher interface for the given test platform, assuming the import
is done in a .ts file that is included in the user's tsconfig.json.</p>
<p>It's also (still) possible to import the matchers directly without
side effects:</p>
<p>import * as matchers from
'<code>@​testing-library/jest-dom/</code>matchers'</p>
<ul>
<li>Update kcd-scripts</li>
<li>Drop node &lt; 14</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/testing-library/jest-dom/commit/4b764b9f6a7b564d7f8ec0e9b0c6ba9cc875f2b8"><code>4b764b9</code></a>
feat: local types, supporting jest, <code>@​jest/globals</code>, vitest
(<a
href="https://redirect.github.com/testing-library/jest-dom/issues/511">#511</a>)</li>
<li>See full diff in <a
href="https://github.com/testing-library/jest-dom/compare/v5.17.0...v6.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@testing-library/jest-dom&package-manager=npm_and_yarn&previous-version=5.17.0&new-version=6.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stephen Watkins <[email protected]>
  • Loading branch information
dependabot[bot] and stephenjwatkins authored Aug 14, 2023
1 parent cb3d8fe commit b50dc3e
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 416 deletions.
2 changes: 1 addition & 1 deletion easy-ui-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/react-is": "^18.2.1",
Expand Down
5 changes: 5 additions & 0 deletions easy-ui-react/src/utilities/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import userEvent from "@testing-library/user-event";
import { ReactElement } from "react";
import { vi } from "vitest";

declare global {
// eslint-disable-next-line no-var
var jest: object;
}

/**
* Render a react element for testing. Passes in vitest's timers for user-event.
*/
Expand Down
3 changes: 2 additions & 1 deletion easy-ui-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"paths": {
"@easypost/easy-ui-icons/*": ["../../easy-ui-icons/dist/*"],
"@easypost/easy-ui-tokens/*": ["../../easy-ui-tokens/dist/*"]
}
},
"types": ["vitest/globals", "@testing-library/jest-dom"]
},
"include": ["./src/**/*"]
}
Loading

0 comments on commit b50dc3e

Please sign in to comment.