Skip to content

Commit d7df2c5

Browse files
committed
update a mock
1 parent a6ac945 commit d7df2c5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

site/src/pages/TemplateVersionEditorPage/TemplateVersionEditorPage.test.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ import { AppProviders } from "App";
2424

2525
// For some reason this component in Jest is throwing a MUI style warning so,
2626
// since we don't need it for this test, we can mock it out
27-
jest.mock("components/TemplateResourcesTable/TemplateResourcesTable", () => {
28-
return {
29-
TemplateResourcesTable: () => <div />,
30-
};
31-
});
27+
jest.mock(
28+
"modules/templates/TemplateResourcesTable/TemplateResourcesTable",
29+
() => {
30+
return {
31+
TemplateResourcesTable: () => <div />,
32+
};
33+
},
34+
);
3235

3336
const renderTemplateEditorPage = () => {
3437
renderWithAuth(<TemplateVersionEditorPage />, {

0 commit comments

Comments
 (0)