diff --git a/test/example.ts b/test/example.ts index 84ec13f..3f7aada 100644 --- a/test/example.ts +++ b/test/example.ts @@ -1,4 +1,3 @@ -/* eslint-disable no-console */ import letterboxd from "../index"; import type { Letterboxd } from "../src/letterboxd"; diff --git a/test/letterboxd.test.ts b/test/letterboxd.test.ts index a5c0b2d..b28d723 100644 --- a/test/letterboxd.test.ts +++ b/test/letterboxd.test.ts @@ -1,12 +1,12 @@ import path from "path"; import { fileURLToPath } from "url"; - import nock from "nock"; +// import letterboxd from "../index.js"; +import letterboxd from "../index"; -import letterboxd from "../index.js"; - +const cwd = process.cwd(); +const __dirname = path.dirname(cwd + "/letterboxd-api"); //foldername of the project -// const __dirname = path.dirname(fileURLToPath(import.meta.url)); const expectedItems = [ {