
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@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
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.

Security News
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.