Skip to content
Snippets Groups Projects
Unverified Commit 4fdf2b85 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

When running some Jest unit tests, use a MutationObserver shim (#16985)

parent 3d6dd776
No related merge requests found
import React from "react";
import { render, screen } from "@testing-library/react";
import "mutationobserver-shim";
import { ORDERS, PRODUCTS, PEOPLE } from "__support__/sample_dataset_fixture";
import { FieldValuesWidget } from "metabase/components/FieldValuesWidget";
......
......@@ -6,6 +6,7 @@ import {
import "@testing-library/jest-dom/extend-expect";
import { fireEvent, render, screen } from "@testing-library/react";
import "mutationobserver-shim";
const PIN_MESSAGE_DESCRIPTION = "Your team's most important dashboards go here";
const PIN_MESSAGE_HINT =
......
......@@ -2,6 +2,7 @@
import React from "react";
import { render } from "@testing-library/react";
import "mutationobserver-shim";
import EntityListLoader from "metabase/entities/containers/EntityListLoader";
import { Provider } from "react-redux";
......
......@@ -9175,6 +9175,11 @@ mustache@^2.3.2:
resolved "https://registry.yarnpkg.com/mustache/-/mustache-2.3.2.tgz#a6d4d9c3f91d13359ab889a812954f9230a3d0c5"
integrity sha512-KpMNwdQsYz3O/SBS1qJ/o3sqUJ5wSb8gb0pul8CO0S56b9Y2ALm8zCfsjPXsqGFfoNBkDwZuZIAjhsZI03gYVQ==
 
mutationobserver-shim@^0.3.7:
version "0.3.7"
resolved "https://registry.yarnpkg.com/mutationobserver-shim/-/mutationobserver-shim-0.3.7.tgz#8bf633b0c0b0291a1107255ed32c13088a8c5bf3"
integrity sha512-oRIDTyZQU96nAiz2AQyngwx1e89iApl2hN5AOYwyxLUB47UYsU3Wv9lJWqH5y/QdiYkc5HQLi23ZNB3fELdHcQ==
mz@^2.6.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment