
Research
TeamPCP Compromises Telnyx Python SDK to Deliver Credential-Stealing Malware
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.
@xylabs/vitest-matchers
Advanced tools
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
@xylabs/vitest-matchers
| Interface | Description |
|---|---|
| ExpectationResult | Result returned by a custom matcher function. |
| Variable | Description |
|---|---|
| matchers | Collection of custom Vitest matchers extending the built-in expect assertions. |
Result returned by a custom matcher function.
const matchers: {
toBeArrayOfSize: ExpectationResult;
toBeArray: ExpectationResult;
toBeOneOf: ExpectationResult;
toBeNegative: ExpectationResult;
toBePositive: ExpectationResult;
toBeNumber: (received: unknown) => ExpectationResult;
toBeFunction: (received: unknown) => ExpectationResult;
toBeString: (received: unknown) => ExpectationResult;
toBeObject: ExpectationResult;
toBeInteger: ExpectationResult;
toBeFalse: ExpectationResult;
toBeTrue: ExpectationResult;
toContainAllValues: {
pass: boolean;
message: () => string;
};
toContainKey: {
pass: boolean;
message: () => string;
};
toInclude: {
pass: boolean;
message: () => string;
};
toIncludeAllMembers: ExpectationResult;
toContainAllKeys: ExpectationResult;
toContainValues: ExpectationResult;
toBeEmpty: ExpectationResult;
toBeValidDate: {
pass: boolean;
message: () => string;
};
};
Collection of custom Vitest matchers extending the built-in expect assertions.
| Name | Type | Description |
|---|---|---|
toBeArrayOfSize() | (received: unknown, expectedSize: number) => ExpectationResult | Asserts the received value is an array with the specified length. |
toBeArray() | (received: unknown) => ExpectationResult | Asserts the received value is an array. |
toBeOneOf() | (received: unknown, expected: unknown[]) => ExpectationResult | Asserts the received value is one of the values in the expected array. |
toBeNegative() | (received: number) => ExpectationResult | Asserts the received number is negative (less than zero). |
toBePositive() | (received: number) => ExpectationResult | Asserts the received number is positive (greater than zero). |
toBeNumber() | (received: unknown) => ExpectationResult | Asserts the received value is of type number and not NaN. |
toBeFunction() | (received: unknown) => ExpectationResult | Asserts the received value is of type function. |
toBeString() | (received: unknown) => ExpectationResult | Asserts the received value is of type string. |
toBeObject() | (received: unknown) => ExpectationResult | Asserts the received value is a plain object (not an array or null). |
toBeInteger() | (received: number) => ExpectationResult | Asserts the received number is an integer. |
toBeFalse() | (received: unknown) => ExpectationResult | Asserts the received value is strictly false. |
toBeTrue() | (received: unknown) => ExpectationResult | Asserts the received value is strictly true. |
toContainAllValues() | (received: unknown, expectedValues: unknown[]) => { pass: boolean; message: () => string; } | Asserts that all expected values are present in the received array or object values. |
toContainKey() | (received: object, key: string) => { pass: boolean; message: () => string; } | Asserts that the received object contains the specified key. |
toInclude() | (received: unknown, value: any) => { pass: boolean; message: () => string; } | Asserts that the received array, string, or object values include the specified value. |
toIncludeAllMembers() | (received: unknown[], expected: unknown[]) => ExpectationResult | Asserts that the received array includes all members of the expected array. |
toContainAllKeys() | (received: object, expectedKeys: string[]) => ExpectationResult | Asserts that the received object contains all of the specified keys. |
toContainValues() | (received: object, expectedValues: unknown[]) => ExpectationResult | Asserts that the received object contains all of the specified values (using deep equality). |
toBeEmpty() | (received: unknown) => ExpectationResult | Asserts the received value is empty (zero-length array/string, empty object, or empty Map/Set). |
toBeValidDate() | (received: unknown) => { pass: boolean; message: () => string; } | Asserts the received value is a valid Date instance (not an invalid date). |
Part of sdk-js
See the LICENSE file for license details
FAQs
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
The npm package @xylabs/vitest-matchers receives a total of 238 weekly downloads. As such, @xylabs/vitest-matchers popularity was classified as not popular.
We found that @xylabs/vitest-matchers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.

Security News
/Research
Widespread GitHub phishing campaign uses fake Visual Studio Code security alerts in Discussions to trick developers into visiting malicious website.