@devries-cameron20 / composio Mirror · read-only / commits / afcc5a0f7
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 23, 03:00 UTC

Add vitest unit tests into ci

haxzie committed May 19, 2025 at 17:43 UTC afcc5a0f70fea48c9fb9b5392bdd515a00cea913
13 files changed +85 -43
.github/workflows/ci.yml
+3
@@ -33,3 +33,6 @@ jobs:
33
34 - name: Run Build
35 run: pnpm turbo run build
36 +
37 + - name: Run Tests
38 + run: pnpm turbo run test
package.json
+1 -1
@@ -8,7 +8,7 @@
8 ],
9 "scripts": {
10 "build": "turbo build",
11 - "test": "echo \"Error: no test specified\" && exit 1",
11 + "test": "turbo test --filter=./packages/**",
12 "lint": "eslint . --ext .ts,.tsx",
13 "lint:fix": "eslint . --ext .ts,.tsx --fix",
14 "format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
packages/core/package.json
+2 -2
@@ -22,7 +22,7 @@
22 ],
23 "scripts": {
24 "build": "tsup",
25 - "test": "vitest"
25 + "test": "vitest run"
26 },
27 "keywords": [],
28 "author": "",
@@ -42,5 +42,5 @@
42 "zod": "^3.24.2",
43 "zod-to-json-schema": "^3.24.5"
44 },
45 - "gitHead": "f1d3e98644b917030fe9b4cc43db84d21934894a"
45 + "gitHead": "8f757632d77f40800f7ebc0dddec87ee14d52720"
46 }
packages/toolsets/cloudflare/package.json
+4 -3
@@ -22,7 +22,7 @@
22 ],
23 "scripts": {
24 "build": "tsup",
25 - "test": "echo \"Error: no test specified\" && exit 1"
25 + "test": "vitest run"
26 },
27 "keywords": [],
28 "author": "",
@@ -35,7 +35,8 @@
35 "devDependencies": {
36 "@composio/core": "^0.1.10-alpha.0",
37 "tsup": "^8.4.0",
38 - "typescript": "^5.8.3"
38 + "typescript": "^5.8.3",
39 + "vitest": "^3.1.3"
40 },
40 - "gitHead": "f1d3e98644b917030fe9b4cc43db84d21934894a"
41 + "gitHead": "8f757632d77f40800f7ebc0dddec87ee14d52720"
42 }
packages/toolsets/cloudflare/test/cloudflare.test.ts new
+7
@@ -0,0 +1,7 @@
1 +import { describe, it, expect } from 'vitest';
2 +
3 +describe('Vercel', () => {
4 + it('should be a test', () => {
5 + expect(true).toBe(true);
6 + });
7 +});
packages/toolsets/langchain/package.json
+4 -3
@@ -22,7 +22,7 @@
22 ],
23 "scripts": {
24 "build": "tsup",
25 - "test": "echo \"Error: no test specified\" && exit 1"
25 + "test": "vitest run"
26 },
27 "keywords": [],
28 "author": "",
@@ -35,7 +35,8 @@
35 "devDependencies": {
36 "@composio/core": "^0.1.10-alpha.0",
37 "tsup": "^8.4.0",
38 - "typescript": "^5.8.3"
38 + "typescript": "^5.8.3",
39 + "vitest": "^3.1.3"
40 },
40 - "gitHead": "f1d3e98644b917030fe9b4cc43db84d21934894a"
41 + "gitHead": "8f757632d77f40800f7ebc0dddec87ee14d52720"
42 }
packages/toolsets/langchain/test/langchain.test.ts new
+7
@@ -0,0 +1,7 @@
1 +import { describe, it, expect } from 'vitest';
2 +
3 +describe('Vercel', () => {
4 + it('should be a test', () => {
5 + expect(true).toBe(true);
6 + });
7 +});
packages/toolsets/openai/package.json
+4 -3
@@ -22,7 +22,7 @@
22 ],
23 "scripts": {
24 "build": "tsup",
25 - "test": "echo \"Error: no test specified\" && exit 1"
25 + "test": "vitest run"
26 },
27 "keywords": [],
28 "author": "",
@@ -35,7 +35,8 @@
35 "devDependencies": {
36 "@composio/core": "^0.1.10-alpha.0",
37 "tsup": "^8.4.0",
38 - "typescript": "^5.8.3"
38 + "typescript": "^5.8.3",
39 + "vitest": "^3.1.3"
40 },
40 - "gitHead": "f1d3e98644b917030fe9b4cc43db84d21934894a"
41 + "gitHead": "8f757632d77f40800f7ebc0dddec87ee14d52720"
42 }
packages/toolsets/openai/test/openai.test.ts new
+7
@@ -0,0 +1,7 @@
1 +import { describe, it, expect } from 'vitest';
2 +
3 +describe('Vercel', () => {
4 + it('should be a test', () => {
5 + expect(true).toBe(true);
6 + });
7 +});
packages/toolsets/vercel/package.json
+4 -3
@@ -22,7 +22,7 @@
22 ],
23 "scripts": {
24 "build": "tsup",
25 - "test": "echo \"Error: no test specified\" && exit 1"
25 + "test": "vitest run"
26 },
27 "keywords": [],
28 "author": "",
@@ -35,7 +35,8 @@
35 "devDependencies": {
36 "@composio/core": "^0.1.10-alpha.0",
37 "tsup": "^8.4.0",
38 - "typescript": "^5.8.3"
38 + "typescript": "^5.8.3",
39 + "vitest": "^3.1.3"
40 },
40 - "gitHead": "f1d3e98644b917030fe9b4cc43db84d21934894a"
41 + "gitHead": "8f757632d77f40800f7ebc0dddec87ee14d52720"
42 }
packages/toolsets/vercel/test/vercel.test.ts new
+7
@@ -0,0 +1,7 @@
1 +import { describe, it, expect } from 'vitest';
2 +
3 +describe('Vercel', () => {
4 + it('should be a test', () => {
5 + expect(true).toBe(true);
6 + });
7 +});
pnpm-lock.yaml
+24 -17
@@ -218,14 +218,17 @@ importers:
218 version: 4.20250515.0
219 devDependencies:
220 '@composio/core':
221 - specifier: 0.1.9-alpha.0
222 - version: 0.1.9-alpha.0(encoding@0.1.13)
221 + specifier: ^0.1.10-alpha.0
222 + version: 0.1.10-alpha.0(encoding@0.1.13)
223 tsup:
224 specifier: ^8.4.0
225 version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.0)
226 typescript:
227 specifier: ^5.8.3
228 version: 5.8.3
229 + vitest:
230 + specifier: ^3.1.3
231 + version: 3.1.3(@types/node@22.15.18)(tsx@4.19.4)(yaml@2.8.0)
232
233 packages/toolsets/langchain:
234 dependencies:
@@ -234,14 +237,17 @@ importers:
237 version: 0.3.56(openai@4.98.0(encoding@0.1.13)(zod@3.24.4))
238 devDependencies:
239 '@composio/core':
237 - specifier: 0.1.9-alpha.0
238 - version: 0.1.9-alpha.0(encoding@0.1.13)
240 + specifier: ^0.1.10-alpha.0
241 + version: 0.1.10-alpha.0(encoding@0.1.13)
242 tsup:
243 specifier: ^8.4.0
244 version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.0)
245 typescript:
246 specifier: ^5.8.3
247 version: 5.8.3
248 + vitest:
249 + specifier: ^3.1.3
250 + version: 3.1.3(@types/node@22.15.18)(tsx@4.19.4)(yaml@2.8.0)
251
252 packages/toolsets/openai:
253 dependencies:
@@ -250,14 +256,17 @@ importers:
256 version: 4.98.0(encoding@0.1.13)(zod@3.24.4)
257 devDependencies:
258 '@composio/core':
253 - specifier: 0.1.9-alpha.0
254 - version: 0.1.9-alpha.0(encoding@0.1.13)
259 + specifier: ^0.1.10-alpha.0
260 + version: 0.1.10-alpha.0(encoding@0.1.13)
261 tsup:
262 specifier: ^8.4.0
263 version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.0)
264 typescript:
265 specifier: ^5.8.3
266 version: 5.8.3
267 + vitest:
268 + specifier: ^3.1.3
269 + version: 3.1.3(@types/node@22.15.18)(tsx@4.19.4)(yaml@2.8.0)
270
271 packages/toolsets/vercel:
272 dependencies:
@@ -266,14 +275,17 @@ importers:
275 version: 4.3.15(react@19.1.0)(zod@3.24.4)
276 devDependencies:
277 '@composio/core':
269 - specifier: 0.1.9-alpha.0
270 - version: 0.1.9-alpha.0(encoding@0.1.13)
278 + specifier: ^0.1.10-alpha.0
279 + version: 0.1.10-alpha.0(encoding@0.1.13)
280 tsup:
281 specifier: ^8.4.0
282 version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.0)
283 typescript:
284 specifier: ^5.8.3
285 version: 5.8.3
286 + vitest:
287 + specifier: ^3.1.3
288 + version: 3.1.3(@types/node@22.15.18)(tsx@4.19.4)(yaml@2.8.0)
289
290 packages:
291
@@ -326,11 +338,8 @@ packages:
338 '@composio/client@0.1.0-alpha.10':
339 resolution: {integrity: sha512-ieaVXwx9A0zKvLS6yFEr7YZCAoBHQrPzFK8jTjN8QDjqLdQEuufuFfzM5ZUEN5UCX2bckR77OplZZjAn3TikWA==}
340
329 - '@composio/client@0.1.0-alpha.9':
330 - resolution: {integrity: sha512-uhXW5NxIY+j5IZ7WnzOLrVmOAhSCb1FdQbvDxPCcQqpE7d78uRHS9i/aK4Xn6UNIPv+pt1BT8unR0zEdKjG3Ng==}
331 -
332 - '@composio/core@0.1.9-alpha.0':
333 - resolution: {integrity: sha512-v01Dn1TDqcwtkjSnNVuWsVBpdcHuNGUFG9lS9lyuU5J5BSZ2x67BnhzGlTVyp3KAr1066unUOvy8gcY/9setXA==}
341 + '@composio/core@0.1.10-alpha.0':
342 + resolution: {integrity: sha512-PMXrHEIg7rLGtd0dqvU1lSNRoQOGSIU4XWSu1u6hL/6W/mekO0ZEQnwZLEKaYQMT6Nq3ALvnzV3CVX4IP+5XCg==}
343
344 '@emnapi/core@1.4.3':
345 resolution: {integrity: sha512-4m62DuCE07lw01soJwPiBGC0nAww0Q+RY70VZ+n49yDIO13yyinhbWCeNnaob0lakDtWQzSdtNWzJeOJt2ma+g==}
@@ -4002,11 +4011,9 @@ snapshots:
4011
4012 '@composio/client@0.1.0-alpha.10': {}
4013
4005 - '@composio/client@0.1.0-alpha.9': {}
4006 -
4007 - '@composio/core@0.1.9-alpha.0(encoding@0.1.13)':
4014 + '@composio/core@0.1.10-alpha.0(encoding@0.1.13)':
4015 dependencies:
4009 - '@composio/client': 0.1.0-alpha.9
4016 + '@composio/client': 0.1.0-alpha.10
4017 openai: 4.98.0(encoding@0.1.13)(zod@3.24.4)
4018 pusher-js: 8.4.0
4019 uuid: 11.1.0
turbo.json
+11 -11
@@ -1,13 +1,13 @@
1 {
2 - "$schema": "https://turbo.build/schema.json",
3 - "tasks": {
4 - "build": {
5 - "dependsOn": ["^build"],
6 - "outputs": ["dist/"]
7 - },
8 - "test": {
9 - "dependsOn": ["^build"],
10 - "outputs": ["dist/"]
11 - }
2 + "$schema": "https://turbo.build/schema.json",
3 + "tasks": {
4 + "build": {
5 + "dependsOn": ["^build"],
6 + "outputs": ["dist/"]
7 + },
8 + "test": {
9 + "dependsOn": ["^build"],
10 + "outputs": ["dist/"]
11 }
13 - }
\ No newline at end of file
12 + }
13 +}