@-xun/test-mock-import
Version:
A generic testing utility that wraps require to ensure imports are performed without caching
85 lines (84 loc) • 2.95 kB
JSON
{
"name": "@-xun/test-mock-import",
"version": "2.0.5",
"description": "A generic testing utility that wraps require to ensure imports are performed without caching",
"keywords": [
"utils",
"isolated",
"import",
"test"
],
"homepage": "https://github.com/Xunnamius/test-utils/tree/main/packages/test-mock-import#readme",
"bugs": {
"url": "https://github.com/Xunnamius/test-utils/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Xunnamius/test-utils.git"
},
"license": "MIT",
"author": "Xunnamius",
"sideEffects": false,
"type": "commonjs",
"exports": {
".": {
"types": "./dist/packages/test-mock-import/src/index.d.ts",
"default": "./dist/packages/test-mock-import/src/index.js"
},
"./package": "./package.json",
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"index": [
"dist/packages/test-mock-import/src/index.d.ts"
],
"package": [
"package.json"
]
}
},
"files": [
"/dist",
"/LICENSE",
"/package.json",
"/README.md"
],
"scripts": {
"build": "npm run build:dist --",
"build:changelog": "symbiote build changelog --env NODE_NO_WARNINGS=1",
"build:dist": "symbiote build distributables --env NODE_NO_WARNINGS=1 --not-multiversal",
"build:docs": "symbiote build docs --env NODE_NO_WARNINGS=1",
"clean": "symbiote clean --env NODE_NO_WARNINGS=1",
"format": "symbiote format --env NODE_NO_WARNINGS=1 --hush",
"info": "symbiote project info --env NODE_NO_WARNINGS=1",
"lint": "npm run lint:package --",
"lint:package": "symbiote lint --env NODE_NO_WARNINGS=1 --hush",
"lint:packages": "symbiote lint --env NODE_NO_WARNINGS=1 --hush --scope unlimited",
"lint:project": "symbiote project lint --env NODE_NO_WARNINGS=1",
"list-tasks": "symbiote list-tasks --env NODE_NO_WARNINGS=1 --scope this-package",
"release": "symbiote release --env NODE_NO_WARNINGS=1",
"start": "symbiote start --env NODE_NO_WARNINGS=1 --",
"test": "npm run test:package:unit --",
"test:package:all": "symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --coverage",
"test:package:e2e": "symbiote test --env NODE_NO_WARNINGS=1 --tests e2e-local",
"test:package:integration": "symbiote test --env NODE_NO_WARNINGS=1 --tests integration",
"test:package:unit": "symbiote test --env NODE_NO_WARNINGS=1 --tests unit type",
"test:packages:all": "symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --scope unlimited --coverage"
},
"dependencies": {
"@-xun/fs": "^2.0.0",
"@-xun/test-mock-exit": "^2.0.3",
"rejoinder": "^2.0.1"
},
"peerDependencies": {
"jest": ">=30 || >=30.0.0-beta.5 || >=30.0.0-alpha.7"
},
"engines": {
"node": "^20.18.0 || ^22.12.0 || >=23.3.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}