Skip to content

Commit 89804b5

Browse files
feat: tests
1 parent 03a5689 commit 89804b5

File tree

6 files changed

+623
-8
lines changed

6 files changed

+623
-8
lines changed

packages/sdk/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,18 @@
2929
"tsup": "^8.3.0",
3030
"typescript": "^5.6.2",
3131
"vite": "^3.2.11",
32-
"vitest": "^1.6.0"
32+
"vitest": "^1.6.0",
33+
"benchmark": "^2.1.4",
34+
"lodash": "^4.17.21"
3335
},
3436
"peerDependencies": {
3537
"starknet": "6.11.0"
3638
},
3739
"dependencies": {
38-
"@dojoengine/torii-client": "workspace:*",
3940
"@dojoengine/create-burner": "workspace:*",
41+
"@dojoengine/torii-client": "workspace:*",
4042
"axios": "^0.27.2",
4143
"immer": "^10.1.1",
42-
"lodash": "^4.17.21",
4344
"vite-plugin-wasm": "^3.3.0",
4445
"zustand": "^4.5.5"
4546
},

packages/sdk/src/__example__/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,20 @@ export interface ItemModel {
2323
durability: number;
2424
}
2525

26+
export interface GalaxyModel {
27+
fieldOrder: string[];
28+
id: string;
29+
name: string;
30+
}
31+
2632
export interface MockSchemaType extends SchemaType {
2733
world: {
2834
player: PlayerModel;
2935
game: GameModel;
3036
item: ItemModel;
3137
};
3238
universe: {
33-
galaxy: {
34-
fieldOrder: string[];
35-
id: string;
36-
name: string;
37-
};
39+
galaxy: GalaxyModel;
3840
};
3941
}
4042

0 commit comments

Comments
 (0)