Fix tests and build

Remove unused code and dependencies
This commit is contained in:
Dolan Miu
2023-06-08 13:30:31 +01:00
parent a0a88412ff
commit 09ab91eeef
19 changed files with 22322 additions and 26082 deletions

View File

@ -1,5 +1,4 @@
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import * as sinon from "sinon";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { Formatter } from "@export/formatter";
@ -43,15 +42,15 @@ describe("CommentReference", () => {
});
describe("Comment", () => {
let clock: sinon.SinonFakeTimers;
beforeEach(() => {
const now = new Date("1999-01-01T00:00:00.000Z");
clock = sinon.useFakeTimers(now.getTime());
vi.useFakeTimers({
now: now.getTime(),
});
});
afterEach(() => {
clock.restore();
vi.restoreAllMocks();
});
describe("#constructor()", () => {