test: using vitest for testing

This commit is contained in:
Ritesh Ghosh
2024-01-07 17:23:46 +05:30
parent 098976ad73
commit 4cf9c57a65
6 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { scrapeAnimeCategory } from "../src/parsers";
import { expect, test } from "vitest";
import { scrapeAnimeCategory } from "../src/parsers/index.js";
test("returns animes belonging to a category", async () => {
const data = await scrapeAnimeCategory("subbed-anime");