testing with jest

This commit is contained in:
2024-12-16 21:25:36 +00:00
parent 9ed0a19393
commit c43bff3e15
5 changed files with 2706 additions and 46 deletions

View File

@ -1,12 +1,12 @@
import { describe, it } from "node:test"
import { describe, expect, it } from "@jest/globals"
import { daily } from "@/main.ts"
import { ActualImpl } from "@/actual.ts"
import { BankStub } from "./stubs/bankStub.ts"
import assert from "node:assert"
describe("Main logic of the application", () => {
it("should import the transactions to Actual Budget", async () => {
await daily(await ActualImpl.init(), new BankStub())
assert.ok(true)
expect(true)
})
})