
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@squiz/ai-tool-test-helpers
Advanced tools
Test utilities for DXP AI Tools that use the ToolHandler signature from @squiz/dxp-tool-sdk.
npm install --save-dev @squiz/tool-test-helpers
Helper function to test tool handlers with minimal parameters. Only input is required; all other parameters (config, system, session, logger) are mocked automatically.
import { callToolHandler } from '@squiz/tool-test-helpers';
import { handler } from './tool';
describe('My Tool', () => {
it('should work with minimal params', async () => {
const result = await callToolHandler(handler, {
input: { foo: 'bar' }
});
expect(result.success).toBe(true);
});
it('should work with custom logger', async () => {
const mockLogger = { error: jest.fn() };
const result = await callToolHandler(handler, {
input: { foo: 'bar' },
logger: mockLogger
});
expect(mockLogger.error).toHaveBeenCalled();
});
});
Creates full mock parameters for ToolHandler if you need more control:
import { createMockToolHandlerParams } from '@squiz/tool-test-helpers';
const params = createMockToolHandlerParams({
input: { foo: 'bar' },
config: {
id: 'custom-id',
name: 'Custom Tool',
// ... other config
}
});
FAQs
Test utilities for DXP AI Tools
The npm package @squiz/ai-tool-test-helpers receives a total of 0 weekly downloads. As such, @squiz/ai-tool-test-helpers popularity was classified as not popular.
We found that @squiz/ai-tool-test-helpers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 74 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.