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 { scrapeAnimeSearch } from "../src/parsers";
import { expect, test } from "vitest";
import { scrapeAnimeSearch } from "../src/parsers/index.js";
test("returns animes related to search query", async () => {
const data = await scrapeAnimeSearch("monster", 2);