feat(cv): qualify templates and reliable local import processing
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React, { useState } from "react";
|
||||
import { MemoryRouter } from "react-router-dom";
|
||||
import "@testing-library/jest-dom";
|
||||
import { fireEvent, render, screen, waitFor, within } from "@testing-library/react";
|
||||
import CvCustomizeTab from "./components/cv/CvCustomizeTab";
|
||||
@@ -34,7 +35,7 @@ function mount(initial = emptyCvVariantSettings(), mode: "customize" | "template
|
||||
current = settings;
|
||||
return <CvCustomizeTab mode={mode} settings={settings} themes={availableThemes} sectionLabel={(_, fallback) => fallback} update={patch => { update(patch); setSettings(previous => ({ ...previous, ...patch })); }} />;
|
||||
}
|
||||
render(<I18nProvider><ConfirmProvider><Harness /></ConfirmProvider></I18nProvider>);
|
||||
render(<MemoryRouter><I18nProvider><ConfirmProvider><Harness /></ConfirmProvider></I18nProvider></MemoryRouter>);
|
||||
return { update, settings: () => current };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user