Skip to content

Commit

Permalink
Merge pull request #1002 from lbrooks/skip-focus-test
Browse files Browse the repository at this point in the history
fix: Skip Focus.unit.ts as a mock SerialPort can no longer be injected.
  • Loading branch information
alexpargon authored Feb 13, 2025
2 parents fd3d742 + 093d2d0 commit 2a3bf50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/focus/Focus.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { SerialPort } from "serialport";
// import { DygmaDeviceType } from "@Types/dygmaDefs";
import { Focus } from "./Focus";

describe("Focus", () => {
// Skipping tests because vitest cannot inject a mock SerialPort when imported as: const sp = eval('require("serialport")');
describe.skip("Focus", () => {
beforeEach(() => {
vi.mock("serialport");
vi.mock("@serialport/stream");
Expand Down

0 comments on commit 2a3bf50

Please sign in to comment.