Cypress Umgebung ok
This commit is contained in:
13
jest.setup.ts
Normal file
13
jest.setup.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import "@testing-library/jest-dom";
|
||||
|
||||
jest.mock("chart.js/auto", () => ({
|
||||
default: {
|
||||
register: jest.fn(), // Mock für register-Methode
|
||||
},
|
||||
Chart: jest.fn().mockImplementation(() => ({
|
||||
destroy: jest.fn(),
|
||||
update: jest.fn(),
|
||||
})),
|
||||
}));
|
||||
|
||||
jest.mock("chartjs-plugin-zoom", () => ({}));
|
||||
Reference in New Issue
Block a user