@loopstack/custom-tool-example-module
Advanced tools
+7
-32
@@ -12,3 +12,3 @@ { | ||
| ], | ||
| "version": "0.21.7", | ||
| "version": "0.22.0", | ||
| "license": "MIT", | ||
@@ -30,7 +30,7 @@ "author": { | ||
| "lint": "eslint .", | ||
| "test": "jest --passWithNoTests", | ||
| "test": "vitest run", | ||
| "watch": "nest build --watch" | ||
| }, | ||
| "dependencies": { | ||
| "@loopstack/common": "^0.29.0", | ||
| "@loopstack/common": "^0.30.0", | ||
| "@nestjs/common": "^11.1.19", | ||
@@ -43,32 +43,7 @@ "zod": "^4.3.6" | ||
| ], | ||
| "jest": { | ||
| "testEnvironment": "node", | ||
| "rootDir": "src", | ||
| "testRegex": ".*\\.spec\\.ts$", | ||
| "transform": { | ||
| "^.+\\.ts$": "ts-jest" | ||
| }, | ||
| "testTimeout": 10000, | ||
| "forceExit": true, | ||
| "maxWorkers": 1 | ||
| }, | ||
| "loopstack": { | ||
| "modules": [ | ||
| { | ||
| "path": "src/custom-tool.module.ts", | ||
| "className": "CustomToolModule" | ||
| } | ||
| ], | ||
| "workflows": [ | ||
| { | ||
| "path": "src/workflows/custom-tool-example.workflow.ts", | ||
| "className": "CustomToolExampleWorkflow", | ||
| "propertyName": "customToolExample" | ||
| } | ||
| ], | ||
| "installModes": [ | ||
| "add", | ||
| "install" | ||
| ] | ||
| "devDependencies": { | ||
| "vitest": "^4.1.6", | ||
| "@swc/core": "^1.15.33", | ||
| "unplugin-swc": "^1.5.9" | ||
| } | ||
| } |
| import { TestingModule } from '@nestjs/testing'; | ||
| import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; | ||
| import { getBlockArgsSchema } from '@loopstack/common'; | ||
@@ -51,7 +52,7 @@ import { createToolTest } from '@loopstack/testing'; | ||
| const mockMathService = { | ||
| sum: jest.fn(), | ||
| sum: vi.fn(), | ||
| }; | ||
| beforeEach(async () => { | ||
| jest.clearAllMocks(); | ||
| vi.clearAllMocks(); | ||
@@ -58,0 +59,0 @@ module = await createToolTest().forTool(MathSumTool).withMock(MathService, mockMathService).compile(); |
| import { TestingModule } from '@nestjs/testing'; | ||
| import { afterEach, beforeEach, describe, expect, it } from 'vitest'; | ||
| import { z } from 'zod'; | ||
@@ -3,0 +4,0 @@ import { getBlockArgsSchema, getBlockConfig, getBlockTools } from '@loopstack/common'; |
619
0.32%43809
-0.9%3
Infinity%+ Added
+ Added
- Removed
- Removed
Updated