diff --git a/apps/imgen/package.json b/apps/imgen/package.json index 669d8ba..e0e638c 100644 --- a/apps/imgen/package.json +++ b/apps/imgen/package.json @@ -24,6 +24,7 @@ }, "devDependencies": { "@types/express": "^4.17.21", + "@types/node": "^20.10.4", "eslint": "^8.55.0", "typescript": "^5.3.3" }, diff --git a/apps/imgen/tsconfig.json b/apps/imgen/tsconfig.json index c7bcf32..e11892b 100644 --- a/apps/imgen/tsconfig.json +++ b/apps/imgen/tsconfig.json @@ -5,7 +5,8 @@ "outDir": "dist", "baseUrl": "src", "types": [ - "bun-types" + "bun-types", + "@types/node" ], "allowImportingTsExtensions": true, "noEmit": true, diff --git a/packages/apis/tests/reddit.test.ts b/packages/apis/tests/reddit.test.ts index f614268..38d6124 100644 --- a/packages/apis/tests/reddit.test.ts +++ b/packages/apis/tests/reddit.test.ts @@ -21,7 +21,7 @@ describe.skip("Reddit subreddit autocomplete", async () => { it(`should get subreddits for query "${validQuery}" (length >= 1)`, async () => { const result = await reddit.subredditAutoComplete(validQuery) ?? []; expect(result).toBeTruthy(); - expect(result?.length).not.toBeGreaterThanOrEqual(1); + expect(result?.length).toBeGreaterThanOrEqual(1); }); const invalidQuery = ""; diff --git a/packages/image-generation/tests/fun.test.ts b/packages/image-generation/tests/fun.test.ts index 3ad4050..d5f28a4 100644 --- a/packages/image-generation/tests/fun.test.ts +++ b/packages/image-generation/tests/fun.test.ts @@ -16,8 +16,8 @@ describe("Cry", async () => { it("should make an image with", async () => { const text = "HELLO WORLD"; - const img = await cry({ text }) - expect(img).not.toBeTruthy() + const img = await cry({ text }); + expect(img).toBeTruthy(); }); }); \ No newline at end of file diff --git a/scripts/build.ts b/scripts/build.ts index 5e75a00..e2d8dd1 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -27,8 +27,3 @@ await Bun.build({ export {}; - -somethingdoentexist! ( - - - " \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 37e17bf..b40dc3a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -747,6 +747,7 @@ __metadata: "@riskybot/image-generate": "workspace:^" "@sapphire/shapeshift": "npm:^3.9.4" "@types/express": "npm:^4.17.21" + "@types/node": "npm:^20.10.4" discord-api-parser: "workspace:^" discord-api-types: "npm:^0.37.66" eslint: "npm:^8.55.0"