{"id":18857,"library":"testing-utils","title":"testing-utils","description":"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.","status":"deprecated","version":"1.0.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install testing-utils","lang":"bash","label":"npm"},{"cmd":"yarn add testing-utils","lang":"bash","label":"yarn"},{"cmd":"pnpm add testing-utils","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"most utilities are wrappers around Jest functions","package":"jest","optional":true}],"imports":[{"note":"Only available as named export, ESM only.","symbol":"createMock","correct":"import { createMock } from 'testing-utils'"},{"note":"ESM default export; no CommonJS support.","wrong":"const testingUtils = require('testing-utils')","symbol":"default","correct":"import testingUtils from 'testing-utils'"},{"note":"Named export, not default.","wrong":"import render from 'testing-utils'","symbol":"render","correct":"import { render } from 'testing-utils'"}],"quickstart":{"code":"import { createMock } from 'testing-utils';\n\nconst mock = createMock();\nmock();\nconsole.log(mock.calls);","lang":"typescript","description":"Basic usage of createMock to create a spy/mock function and track calls."},"warnings":[{"fix":"Do not use in production; consider alternatives like jest.fn() or sinon.","message":"WIP status: package is incomplete and may be broken or removed without notice.","severity":"deprecated","affected_versions":"<=1.0.0"},{"fix":"Use import syntax or use a bundler that supports ESM.","message":"ESM-only: package does not provide CommonJS exports.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Avoid using until package reaches stable release.","message":"No actual functionality: all utilities are unimplemented stubs that throw errors at runtime.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Migrate to actively maintained testing utilities like vitest or @jest/globals.","message":"Package has been abandoned; no updates since initial release.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use correct import: import { createMock } from 'testing-utils'","cause":"Import error: createMock is not exported from package (or is default export).","error":"Uncaught Error: createMock is not a function"},{"fix":"Use ESM import: import testingUtils from 'testing-utils'","cause":"CommonJS require used on an ESM-only package.","error":"TypeError: testing_utils_1.default is not a function"},{"fix":"Do not use this package; choose an alternative.","cause":"Package is WIP; functions are stubs.","error":"Error: Method not implemented."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}