Registry / testing / testing-utils

testing-utils

JSON →
library0.0.0jsnpmunverified

A placeholder package for test utilities currently in development. Version 1.0.0 is the initial release with minimal functionality. This package serves as a sandbox for testing workflows and is not recommended for production use.

npm install testing-utils
INSTALL
IMPORT
SIG · TESTING-UTILS
T
testing-utils
testingjavascriptv0.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

createMock
import { createMock } from 'testing-utils'
Only available as named export, ESM only.
default
import testingUtils from 'testing-utils'
const testingUtils = require('testing-utils')
ESM default export; no CommonJS support.
render
import { render } from 'testing-utils'
import render from 'testing-utils'
Named export, not default.

Basic usage of createMock to create a spy/mock function and track calls.

import { createMock } from 'testing-utils'; const mock = createMock(); mock(); console.log(mock.calls);
Debug
Known issues
deprecatedWIP status: package is incomplete and may be broken or removed without notice.
fix
Do not use in production; consider alternatives like jest.fn() or sinon.
affects: <=1.0.0
gotchaESM-only: package does not provide CommonJS exports.
fix
Use import syntax or use a bundler that supports ESM.
affects: >=1.0.0
breakingNo actual functionality: all utilities are unimplemented stubs that throw errors at runtime.
fix
Avoid using until package reaches stable release.
affects: >=1.0.0
deprecatedPackage has been abandoned; no updates since initial release.
fix
Migrate to actively maintained testing utilities like vitest or @jest/globals.
affects: >=1.0.0
Errors
Common errors & fixes
Uncaught Error: createMock is not a function
Import error: createMock is not exported from package (or is default export).
fix
Use correct import: import { createMock } from 'testing-utils'
TypeError: testing_utils_1.default is not a function
CommonJS require used on an ESM-only package.
fix
Use ESM import: import testingUtils from 'testing-utils'
Error: Method not implemented.
Package is WIP; functions are stubs.
fix
Do not use this package; choose an alternative.
Upgrade
Version history
0.0.0latest on npm
Audit
Dependencies
jestoptionalmost utilities are wrappers around Jest functions
Agent activity
5 hits · last 30 days
node
4
Resources
testing-utils — npm install testing-utils · libregistry