@hexancore/mocker
Version:
Simple and magical mocks for TypeScript, works with jest and vitest
99 lines (98 loc) • 2.3 kB
JSON
{
"name": "@hexancore/mocker",
"version": "1.2.0",
"keywords": [
"mock",
"typescript",
"jest",
"mocker",
"automock",
"test",
"testing",
"unit",
"stub",
"spy",
"fake"
],
"engines": {
"node": ">=18"
},
"engine-strict": true,
"description": "Simple and magical mocks for TypeScript, works with jest and vitest",
"author": {
"name": "Andrzej Wasiak"
},
"license": "MIT",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"typesVersions": {
"*": {
".": [
"./lib/index.d.ts"
],
"vitest": [
"./lib/vitest/index.d.ts"
]
}
},
"exports": {
".": {
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"default": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
},
"./vitest": {
"import": {
"types": "./lib/vitest/index.d.ts",
"default": "./lib/vitest/index.js"
},
"default": {
"types": "./lib/vitest/index.d.ts",
"default": "./lib/vitest/index.js"
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/hexancore/mocker.git"
},
"publishConfig": {
"access": "public"
},
"homepage": "https://github.com/hexancore/mocker",
"scripts": {
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,test}/**/*.ts\" --fix",
"test": "yarn test:jest && yarn test:vitest",
"test:jest": "yarn run jest --runInBand",
"test:vitest": "yarn run vitest --run",
"build": "tsc --build tsconfig.build.json",
"prepublish": "yarn test && yarn run build"
},
"devDependencies": {
"@swc/core": "^1.3.91",
"@types/jest": "29.0",
"@types/node": "^18.*",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@vitest/coverage-v8": "^0.34.6",
"eslint": "^8.3.0",
"jest": "^29.7.0",
"jest-docblock": "29.4.*",
"jest-expect-message": "^1.1.3",
"jest-runner": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "5.2.2",
"unplugin-swc": "^1.4.2",
"vite": "^4.4.9",
"vitest": "^0.34.6"
},
"bugs": {
"url": "https://github.com/hexancore/mocker/issues"
}
}