Skip to content

Commit

Permalink
fix(report): remove video annotation if no videos (#235)
Browse files Browse the repository at this point in the history
* test: snap chart options and series

* fix(report): remove video annotation if no videos
  • Loading branch information
Almouro committed Mar 13, 2024
1 parent a291fbe commit 93c3b99
Show file tree
Hide file tree
Showing 6 changed files with 6,429 additions and 104 deletions.
6 changes: 2 additions & 4 deletions jest-setup.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* eslint-disable import/no-extraneous-dependencies */
import { TextEncoder, TextDecoder } from "util";
import "@perf-profiler/web-reporter-ui/mockApexChart";

process.env.AWS_ACCESS_KEY_ID = "MOCK_AWS_ACCESS_KEY_ID";
process.env.AWS_SECRET_ACCESS_KEY = "MOCK_AWS_SECRET_ACCESS_KEY";

// See https://github.com/apexcharts/react-apexcharts/issues/52
jest.mock("react-apexcharts", () => "apex-charts");
jest.mock("apexcharts", () => ({ exec: jest.fn() }));

Math.random = jest.fn(() => 0.5);

// Needed to be able to test socket.io v>=4.7.0 in a jsdom environment
Expand Down

0 comments on commit 93c3b99

Please sign in to comment.