Registry / testing / testytesterson

testytesterson

JSON →
library9001.9001.9020jsnpmunverified

A module to generate ridiculous test data, version 9001.9001.9020. Regularly released, it provides random usernames, names, emails, lorem ipsum text, image URLs, birthdays, countries, and IP addresses. Differentiated by its intentionally nonsensical and humorous output, suitable for mocking data in development and testing environments where realism is not required.

npm install testytesterson
INSTALL
IMPORT
SIG · TESTYTESTERSON
T
testytesterson
testingjavascriptv9001.9001.9020
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 testercle from 'testytesterson'
const testercle = require('testytesterson')
ESM-only since v9001.9001.9000; default export provides all methods.
username
testercle.username()
testercle.username
username is a method, not a property; always call as a function.
imageUrl
testercle.imageUrl()
testercle.imageUrl
imageUrl is a method; requires parentheses.

Demonstrates basic usage of all generator methods using default import.

import testercle from 'testytesterson'; console.log(testercle.username()); // curtis frejaboing console.log(testercle.name()); // Huge Spotsausage console.log(testercle.email()); // mazingknife@jean-luc.com console.log(testercle.lorem()); console.log(testercle.imageUrl()); // https://api.adorable.io/avatars/200/vastbritchesdrug.png console.log(testercle.birthdayISO()); console.log(testercle.country()); // BE console.log(testercle.ip()); // 149.33.8.251
Debug
Known issues
breakingESM-only since v9001.9001.9000; require() fails with ERR_REQUIRE_ESM
fix
Use import instead of require.
affects: >=9001.9001.9000
gotchaimageUrl() returns 'https://api.adorable.io/avatars/200/...' which is now a dead service.
fix
The image URL API may return 404; consider using a different placeholder service.
affects: *
gotchaOutput is intentionally ridiculous and non-deterministic; cannot be used for reproducible test data.
fix
Use a deterministic fake data library if reproducibility is needed.
affects: *
Errors
Common errors & fixes
ERR_REQUIRE_ESM: require() of ES Module not supported
Using require() on an ESM-only module.
fix
Use import statement: import testercle from 'testytesterson'
TypeError: testercle.username is not a function
Forgetting to call the method with parentheses.
fix
Use testercle.username() instead of testercle.username
Upgrade
Version history
9001.9001.9020latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
testytesterson — npm install testytesterson · libregistry