Registry / testing / ut-test

ut-test

JSON →
library6.1.17jsnpmunverified

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.

npm install ut-test
INSTALL
IMPORT
SIG · UT-TEST
U
ut-test
testingjavascriptv6.1.17
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.

default
import utTest from 'ut-test'
const utTest = require('ut-test')
Package is ESM-only, CommonJS require will fail.
test
import { test } from 'ut-test'
const { test } = require('ut-test')
Named export, only works with ESM import.
describe
import { describe } from 'ut-test'
const describe = require('ut-test').describe
Named export, do not use default import for it.

Shows basic test structure using describe, test, and expect from ut-test.

import { test, describe, expect } from 'ut-test'; describe('example', () => { test('should work', () => { expect(1 + 1).toBe(2); }); });
Debug
Known issues
breakingESM only since v2
fix
Use import syntax instead of require.
affects: >=2.0
gotchaNo browser support
fix
Only use in Node.js environment.
affects: all
deprecatedsomeFunction is deprecated and will be removed in v7
fix
Use newFunction instead.
affects: >=6.0
Errors
Common errors & fixes
Cannot find module 'ut-test'
Package not installed or wrong import path.
fix
Run npm install ut-test and use correct import syntax.
require is not defined in ES module scope
Using require() with ESM-only package.
fix
Switch to import statements.
Upgrade
Version history
6.1.17latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
ut-test — npm install ut-test · libregistry