Skip to content

Commit 9626152

Browse files
committed
Mock warnOnce
1 parent 031e41c commit 9626152

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cartesian-chart/__tests__/cartesian-chart-error-bars.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ describe("CartesianChart: Error bars", () => {
105105
describe("validation", () => {
106106
const warnOnce = vi.spyOn(ComponentToolkitInternal, "warnOnce");
107107

108+
beforeEach(() => {
109+
warnOnce.mockImplementation(() => null);
110+
});
111+
108112
afterEach(() => {
109113
warnOnce.mockReset();
110114
});

0 commit comments

Comments
 (0)