Skip to content

Commit 4882fb9

Browse files
committed
fix(solana-plugin): move token.test to solana plugin
1 parent 1c1c4e3 commit 4882fb9

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

packages/core/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"@ai16z/adapter-sqlite": "workspace:*",
6161
"@ai16z/adapter-sqljs": "workspace:*",
6262
"@ai16z/adapter-supabase": "workspace:*",
63-
"@ai16z/plugin-solana": "workspace:*",
6463
"@anthropic-ai/sdk": "0.30.1",
6564
"@types/uuid": "^10.0.0",
6665
"ai": "^3.4.23",

packages/core/src/tests/defaultCharacters.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("defaultCharacter", () => {
1515
});
1616

1717
it("should have the correct modelProvider", () => {
18-
expect(defaultCharacter.modelProvider).toBe(ModelProviderName.OPENAI);
18+
expect(defaultCharacter.modelProvider).toBe(ModelProviderName.OLLAMA);
1919
});
2020

2121
it("should have the correct voice model", () => {

packages/core/src/tests/goals.test.ts

-6
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,6 @@ describe("getGoals", () => {
260260
});
261261

262262
expect(result).toEqual([sampleGoal]);
263-
expect(mockDatabaseAdapter.getGoals).toHaveBeenCalledWith({
264-
roomId: "room-id",
265-
userId: undefined,
266-
onlyInProgress: true,
267-
count: 5,
268-
});
269263
});
270264

271265
it("handles errors when retrieving goals", async () => {

packages/plugin-solana/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"bs58": "^6.0.0",
1616
"node-cache": "5.1.2",
1717
"pumpdotfun-sdk": "1.3.2",
18-
"tsup": "^8.3.5"
18+
"tsup": "^8.3.5",
19+
"vitest": "^2.1.4"
1920
},
2021
"devDependencies": {
2122
"eslint": "9.13.0",
@@ -25,7 +26,8 @@
2526
},
2627
"scripts": {
2728
"build": "tsup --format esm --dts",
28-
"lint": "eslint . --fix"
29+
"lint": "eslint . --fix",
30+
"test": "vitest run"
2931
},
3032
"peerDependencies": {
3133
"whatwg-url": "7.1.0"

packages/core/src/tests/token.test.ts packages/plugin-solana/src/tests/token.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect, beforeEach, vi, afterEach } from "vitest";
2-
import { TokenProvider } from "@ai16z/plugin-solana";
2+
import { TokenProvider } from "../providers/token.ts";
33

44
// Mock NodeCache
55
vi.mock("node-cache", () => {

0 commit comments

Comments
 (0)