Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Replace jest-emotion use with @emotion/jest
Browse files Browse the repository at this point in the history
  • Loading branch information
hwillson committed Feb 20, 2021
1 parent 9f7d82f commit 1ac3d1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
},
preset: "ts-jest/presets/js-with-babel",
setupFilesAfterEnv: ["<rootDir>jest/setup.js"],
snapshotSerializers: ["jest-emotion"],
snapshotSerializers: ["@emotion/jest/serializer"],
globals: {
"ts-jest": {
diagnostics: false,
Expand Down
4 changes: 2 additions & 2 deletions src/Button/Button.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { act, render, screen } from "@testing-library/react";
import { IconShip2 } from "../icons/IconShip2";
import React from "react";
import userEvent from "@testing-library/user-event";
import { matchers } from "jest-emotion";
import { matchers } from "@emotion/jest";
import { colors } from "../colors";

// Add the custom matchers provided by 'jest-emotion'
// Add the custom matchers provided by '@emotion/jest'
expect.extend(matchers);

test("default button renders", () => {
Expand Down
4 changes: 2 additions & 2 deletions src/Table/Table.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { cleanup, render } from "@testing-library/react";
import "@testing-library/jest-dom";
import { Table } from "./Table";
import { ClassNames } from "@emotion/react";
import { matchers } from "jest-emotion";
import { matchers } from "@emotion/jest";
import { colors } from "../colors";

// Add the custom matchers provided by 'jest-emotion'
// Add the custom matchers provided by '@emotion/jest'
expect.extend(matchers);

test("when passed headers in `columns`, should render them, even with no data", () => {
Expand Down

0 comments on commit 1ac3d1a

Please sign in to comment.