
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@forwardimpact/libharness
Advanced tools
Shared test harness and mock infrastructure for the Forward Impact monorepo
Shared test fixtures, mocks, and assertion helpers for the monorepo. Imported by
*.test.js files across libraries, products, and services so test code stays
consistent and test authors stop reinventing the same helpers.
Runner-independent: the mock primitive spy() does not depend on either
node:test or bun:test, so the suite runs under both. See spec 650.
import {
// Mock primitive (replaces node:test's mock.fn)
spy,
// Config / storage / logger / fs
createMockConfig,
createMockStorage,
createSilentLogger,
createMockFs,
// gRPC / RPC
createMockGrpcFn,
MockMetadata,
createMockObserverFn,
createMockTracer,
createMockAuthFn,
// Clients
createMockMemoryClient,
createMockLlmClient,
createMockAgentClient,
createMockVectorClient,
createMockGraphClient,
createMockToolClient,
// Infra
createMockSupabaseClient,
createMockS3Client,
createTurtleHelpers,
createMockProcess,
withSilentConsole,
createMockQueries,
// Agent-aligned engineering standard fixtures (pathway data)
createTestStandard,
createTestLevel,
createTestSkill,
createTestDiscipline,
createTestTrack,
createTestBehaviour,
createTestCapability,
createTestDriver,
createTestPerson,
createTestRoster,
createTestEvidenceRow,
// libeval stream/message helpers
createToolUseMsg,
createTextBlockMsg,
createTestTrace,
collectStream,
stripAnsi,
writeLines,
createMockAgentQuery,
// Assertions
assertThrowsMessage,
assertRejectsMessage,
createDeferred,
// Caching
memoizeAsync,
memoizeOnSubject,
} from "@forwardimpact/libharness";
The full export list lives in src/index.js. Subpath entries
@forwardimpact/libharness/fixture and @forwardimpact/libharness/mock remain
for narrower imports.
Before adding a helper locally in a test file, check src/index.js. If the
helper doesn't exist and would be reused across two or more files, add it to
libharness in the same PR instead of inlining. See
CONTRIBUTING.md READ-DO and DO-CONFIRM checklists for
the enforced policy and scripts/check-libharness.mjs for the pre-commit guard
that flags inline reimplementations.
spy vs node:test's mock.fnspy() matches mock.fn's shape exactly:
const fn = spy((x) => x * 2);
fn(5);
fn.mock.calls[0].arguments; // [5]
fn.mock.calls[0].result; // 10
fn.mock.callCount(); // 1
fn.mock.resetCalls();
fn.mock.mockImplementation((x) => x + 1);
Prefer spy over node:test's mock.fn — spy works under both bun test
(the default runner) and node --test.
FAQs
Shared mocks and test fixtures so every library and service tests the same way.
The npm package @forwardimpact/libharness receives a total of 39 weekly downloads. As such, @forwardimpact/libharness popularity was classified as not popular.
We found that @forwardimpact/libharness demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.