UNPKG

@metamask/snaps-jest

Version:

A Jest preset for end-to-end testing MetaMask Snaps, including a Jest environment, and a set of Jest matchers

99 lines 3.21 kB
{ "name": "@metamask/snaps-jest", "version": "9.4.0", "description": "A Jest preset for end-to-end testing MetaMask Snaps, including a Jest environment, and a set of Jest matchers", "keywords": [ "MetaMask", "Snaps", "Ethereum" ], "homepage": "https://github.com/MetaMask/snaps/tree/main/packages/snaps-jest#readme", "bugs": { "url": "https://github.com/MetaMask/snaps/issues" }, "repository": { "type": "git", "url": "https://github.com/MetaMask/snaps.git" }, "license": "ISC", "sideEffects": false, "exports": { ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } }, "./jest-preset": "./jest-preset.js", "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.cts", "files": [ "dist", "jest-preset.js" ], "scripts": { "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references", "changelog:update": "../../scripts/update-changelog.sh @metamask/snaps-jest", "changelog:validate": "../../scripts/validate-changelog.sh @metamask/snaps-jest", "lint": "yarn lint:eslint && yarn lint:misc --check && yarn changelog:validate && yarn lint:dependencies", "lint:ci": "yarn lint", "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", "publish:preview": "yarn npm publish --tag preview", "since-latest-release": "../../scripts/since-latest-release.sh", "test": "jest --reporters=jest-silent-reporter", "test:clean": "jest --clearCache", "test:post": "jest-it-up", "test:verbose": "jest --verbose", "test:watch": "jest --watch" }, "dependencies": { "@jest/environment": "^29.5.0", "@jest/expect": "^29.5.0", "@jest/globals": "^29.5.0", "@metamask/snaps-controllers": "^14.2.0", "@metamask/snaps-sdk": "^9.3.0", "@metamask/snaps-simulation": "^3.4.0", "@metamask/superstruct": "^3.2.1", "@metamask/utils": "^11.4.2", "express": "^5.1.0", "jest-environment-node": "^29.5.0", "jest-matcher-utils": "^29.5.0", "redux": "^4.2.1" }, "devDependencies": { "@jest/types": "^29.6.3", "@lavamoat/allow-scripts": "^3.3.4", "@metamask/auto-changelog": "^5.0.2", "@metamask/snaps-utils": "^11.3.0", "@swc/core": "1.11.31", "@swc/jest": "^0.2.38", "@ts-bridge/cli": "^0.6.1", "@types/jest": "^27.5.1", "@types/semver": "^7.5.0", "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^9.11.0", "jest": "^29.0.2", "jest-it-up": "^2.0.0", "jest-silent-reporter": "^0.6.0", "prettier": "^3.3.3", "typescript": "~5.3.3" }, "engines": { "node": "^20 || >=22" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" } }