// npm package
jest-random-mock
Mock `Math.random` when run unit test cases with jest, output deterministic random number.
versions
1
maintainers
1
license
MIT
first publish
2024-02-24
publisher
atool
tarball
7,938 B
AUTO-PUBLISHED·1 version indexed·latest published 2024-02-24
// publisher campaignby atool
9 caught packages from this accountThis is not an isolated catch. The same publisher has shipped 8 other packages that our pipeline flagged — the shape of a coordinated campaign, not a one-off. Each link below opens that sibling's analysis.
// offending code· @1.0.0· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s).
- @1.0.0··AUTO-PUBLISHED·publisher: atoolheuristic 75/100static flags 1llm benign (0.85) via ollamafirst-version-of-packagepublisher-multi-name-burst:5osv-flagged:MAL-2026-4141public-github-push
→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "jest-random-mock", "version": "1.0.0", "description": "Mock `Math.random` when run unit test cases with jest, output deterministic random number.", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ "src", "lib" ], "keywords": [ "jest", "mock", "jest-random-mock", "random" ], "scripts": { "test": "jest --no-cache", "build": "babel src --out-dir lib --copy-files && npm run test" }, "devDependencies": { "@babel/cli": "^7.7.7", "@babel/core": "^7.7.7", "@babel/preset-env": "^7.7.7", "babel-jest": "^24.9.0", "jest": "^24.9.0" }, "jest": { "collectCoverage": true }, "repository": { "type": "git", "url": "git+https://github.com/hustcc/jest-random-mock.git" }, "author": "hustcc", "license": "MIT", "bugs": { "url": "https://github.com/hustcc/jest-random-mock/issues" }, "homepage": "https://github.com/hustcc/jest-random-mock#readme" } --- package.json (entry) --- { "name": "jest-random-mock", "version": "1.0.0", "description": "Mock `Math.random` when run unit test cases with jest, output deterministic random number.", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ "src", "lib" ], "keywords": [ "jest", "mock", "jest-random-mock", "random" ], "scripts": { "test": "jest --no-cache", "build": "babel src --out-dir lib --copy-files && npm run test" }, "devDependencies": { "@babel/cli": "^7.7.7", "@babel/core": "^7.7.7", "@babel/preset-env": "^7.7.7", "babel-jest": "^24.9.0", "jest": "^24.9.0" }, "jest": { "collectCoverage": true }, "repository": { "type": "git", "url": "git+https://github.com/hustcc/jest-random-mock.git" }, "author": "hustcc", "license": "MIT", "bugs": { "url": "https://github.com/hustcc/jest-random-mock/issues" }, "homepage": "https://github.com/hustcc/jest-random-mock#readme" } --- index.js (entry) --- /** * Created by hustcc 2024/02/22. * Contract: i@hust.cc */ export { clear, mock } from './mock'; export { createDeterministicRandom } from './random';
