// npm 패키지
jest-expect
Make jest expect more convenient.
버전
1
메인테이너
1
라이선스
MIT
최초 publish
2018-04-26
publisher
atool
tarball
7,311 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2018-04-26
// publisher 캠페인by atool
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @0.0.1· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
- @0.0.1··AUTO-PUBLISHED·publisher: atoolheuristic 75/100static flags 1llm benign (0.85) via ollamafirst-version-of-packagepublisher-multi-name-burst:5osv-flagged:MAL-2026-4139public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "jest-expect", "version": "0.0.1", "description": "Make jest expect more convenient.", "main": "lib/index.js", "scripts": { "test": "jest", "build": "babel src --out-dir lib", "coveralls": "cat ./coverage/lcov.info | coveralls" }, "repository": { "type": "git", "url": "git+https://github.com/hustcc/jest-expect.git" }, "keywords": [ "jest", "expect", "assertion", "jest-extended" ], "author": "hustcc", "license": "MIT", "bugs": { "url": "https://github.com/hustcc/jest-expect/issues" }, "homepage": "https://github.com/hustcc/jest-expect#readme", "dependencies": { "fixed-round": "^1.0.0", "jest-extended": "^0.7.1" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-jest": "^22.0.4", "babel-preset-env": "^1.6.1", "coveralls": "^3.0.0", "jest": "^22.4.2" }, "jest": { "testRegex": "/__tests__/.*.js$", "collectCoverage": true, "setupFiles": [], "setupTestFrameworkScriptFile": "./src/index.js", "collectCoverageFrom": [ "src/**/*.{js}" ] } } --- package.json (entry) --- { "name": "jest-expect", "version": "0.0.1", "description": "Make jest expect more convenient.", "main": "lib/index.js", "scripts": { "test": "jest", "build": "babel src --out-dir lib", "coveralls": "cat ./coverage/lcov.info | coveralls" }, "repository": { "type": "git", "url": "git+https://github.com/hustcc/jest-expect.git" }, "keywords": [ "jest", "expect", "assertion", "jest-extended" ], "author": "hustcc", "license": "MIT", "bugs": { "url": "https://github.com/hustcc/jest-expect/issues" }, "homepage": "https://github.com/hustcc/jest-expect#readme", "dependencies": { "fixed-round": "^1.0.0", "jest-extended": "^0.7.1" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-jest": "^22.0.4", "babel-preset-env": "^1.6.1", "coveralls": "^3.0.0", "jest": "^22.4.2" }, "jest": { "testRegex": "/__tests__/.*.js$", "collectCoverage": true, "setupFiles": [], "setupTestFrameworkScriptFile": "./src/index.js", "collectCoverageFrom": [ "src/**/*.{js}" ] } } --- index.js (entry) --- /** * Created by hustcc 18/4/26. * Contract: i@hust.cc */ // use jest-extended import 'jest-extended'; import { toBeApproximate } from './toBeApproximate'; const jestExpect = global.expect; // 扩展 expect jestExpect.extend({ toBeApproximate, }); --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- __tests__/jest-extended.js (bundled) --- /** * Created by xiaowei.wzw on 18/4/26. * Contract: xiaowei.wzw@antfin.com */ describe('jest-extended', () => { test('toBeWithin', () => { expect(Math.PI).toBeWithin(3, 4); }); });
