Skip to content

Commit

Permalink
chore: import jest-dom matchers after update
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev authored and mvidalgarcia committed Sep 22, 2023
1 parent 2acf5b8 commit bed85f4
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@size-limit/webpack": "^8.0.0",
"@stylelint/postcss-css-in-js": "^0.38.0",
"@testing-library/cypress": "^8.0.0",
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^7.0.0",
"@testing-library/user-event": "^14.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/orbit-components/config/jestSetupFramework.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TextEncoder } from "util";
import { configure } from "@testing-library/react";
import "jest-styled-components";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";

configure({
testIdAttribute: "data-test",
Expand Down
5 changes: 0 additions & 5 deletions packages/orbit-components/cypress/support/commands.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/orbit-components/cypress/support/e2e.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import "./commands";
import { configure } from "@testing-library/cypress";

/// <reference types="@testing-library/cypress" />
/// <reference types="cypress" />
import "@testing-library/cypress/add-commands";

configure({ testIdAttribute: "data-test" });
2 changes: 1 addition & 1 deletion packages/orbit-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"eslint-plugin-storybook": "^0.6.12",
"flowgen": "^1.20.1",
"fs-extra": "^9.0.1",
"jest-styled-components": "^7.0.5",
"jest-styled-components": "^7.1.1",
"jscodeshift": "^0.13.1",
"jsdom": "^20.0.3",
"loki": "^0.30.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Wizard, { WizardStep } from "..";
jest.mock("../../hooks/useMediaQuery", () => () => ({ isLargeMobile: false }));

describe("Wizard", () => {
const user = userEvent.setup({ delay: null });
const user = userEvent.setup();

describe("compact", () => {
it("shows the current position", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/orbit-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"outDir": "lib",
"skipLibCheck": true,
"noEmit": true,
"types": ["node", "jest", "@testing-library/jest-dom"],
"types": ["node", "jest", "@testing-library/jest-dom", "jest-styled-components"],
"moduleResolution": "node",
"importsNotUsedAsValues": "error"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { configure } from "@testing-library/react";
import "@testing-library/jest-dom/extend-expect";
import "@testing-library/jest-dom";

configure({
testIdAttribute: "data-test",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16217,9 +16217,9 @@ jest-snapshot@^29.3.1:
pretty-format "^29.3.1"
semver "^7.3.5"

jest-styled-components@^7.0.5:
jest-styled-components@^7.1.1:
version "7.1.1"
resolved "https://registry.npmjs.org/jest-styled-components/-/jest-styled-components-7.1.1.tgz"
resolved "https://registry.yarnpkg.com/jest-styled-components/-/jest-styled-components-7.1.1.tgz#faf19c733e0de4bbef1f9151955b99e839b7df48"
integrity sha512-OUq31R5CivBF8oy81dnegNQrRW13TugMol/Dz6ZnFfEyo03exLASod7YGwyHGuayYlKmCstPtz0RQ1+NrAbIIA==
dependencies:
"@adobe/css-tools" "^4.0.1"
Expand Down

0 comments on commit bed85f4

Please sign in to comment.