{"id":18898,"library":"ut-test","title":"UT Test Library","description":"A testing library for the UT framework, providing utilities for unit and integration testing. The current stable version is 6.1.17, with infrequent releases. It is designed primarily for use within the UT ecosystem, differentiating itself by tight integration with UT's module system and conventions. Not intended for general-purpose testing outside of UT projects.","status":"active","version":"6.1.17","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/softwaregroup-bg/ut-test","tags":["javascript"],"install":[{"cmd":"npm install ut-test","lang":"bash","label":"npm"},{"cmd":"yarn add ut-test","lang":"bash","label":"yarn"},{"cmd":"pnpm add ut-test","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only, CommonJS require will fail.","wrong":"const utTest = require('ut-test')","symbol":"default","correct":"import utTest from 'ut-test'"},{"note":"Named export, only works with ESM import.","wrong":"const { test } = require('ut-test')","symbol":"test","correct":"import { test } from 'ut-test'"},{"note":"Named export, do not use default import for it.","wrong":"const describe = require('ut-test').describe","symbol":"describe","correct":"import { describe } from 'ut-test'"}],"quickstart":{"code":"import { test, describe, expect } from 'ut-test';\n\ndescribe('example', () => {\n  test('should work', () => {\n    expect(1 + 1).toBe(2);\n  });\n});\n","lang":"typescript","description":"Shows basic test structure using describe, test, and expect from ut-test."},"warnings":[{"fix":"Use import syntax instead of require.","message":"ESM only since v2","severity":"breaking","affected_versions":">=2.0"},{"fix":"Only use in Node.js environment.","message":"No browser support","severity":"gotcha","affected_versions":"all"},{"fix":"Use newFunction instead.","message":"someFunction is deprecated and will be removed in v7","severity":"deprecated","affected_versions":">=6.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install ut-test and use correct import syntax.","cause":"Package not installed or wrong import path.","error":"Cannot find module 'ut-test'"},{"fix":"Switch to import statements.","cause":"Using require() with ESM-only package.","error":"require is not defined in ES module scope"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}