@metamask/snaps-jest

v0.36.0-flask.1
A Jest preset for end-to-end testing MetaMask Snaps, including a Jest environment, and a set of Jest matchers.

lint

yarn lint:eslint && yarn lint:misc --check && yarn lint:changelog

test

jest --passWithNoTests && yarn posttest

build

yarn build:source && yarn build:types

clean

rimraf '*.tsbuildinfo' 'dist'

lint:ci

yarn lint

test:ci

yarn test

lint:fix

yarn lint:eslint --fix && yarn lint:misc --write

posttest

jest-it-up

build:cjs

swc src --out-dir dist/cjs --config-file ../../.swcrc.build.json --config module.type=commonjs

build:esm

swc src --out-dir dist/esm --config-file ../../.swcrc.build.json --config module.type=es6

lint:misc

prettier --no-error-on-unmatched-pattern --loglevel warn "**/*.json" "**/*.md" "**/*.html" "!CHANGELOG.md" --ignore-path ../../.gitignore

build:clean

yarn clean && yarn build

build:types

tsc --project tsconfig.build.json

lint:eslint

eslint . --cache --ext js,ts,jsx,tsx

build:source

yarn build:esm && yarn build:cjs

lint:changelog

yarn auto-changelog validate

publish:preview

yarn npm publish --tag preview

prepare-manifest:preview

../../scripts/prepare-preview-manifest.sh
npm i @metamask/[email protected]

Metadata

  • Unknown
  • Whatever
  • Unknown
  • released 7/10/2023

Downloads