A simulator for MetaMask Snaps, to be used for testing and development. The latest version can be found here.
- Install Node.js version 16
- If you are using nvm (recommended) running
nvm use
will automatically choose the right node version for you.
- If you are using nvm (recommended) running
- Install Yarn v3
- Run
yarn install
to install dependencies and run any required post-install scripts
Run yarn build
to build the project. The built files will be placed in the dist
directory.
Run yarn start
to start a development server. The server will automatically rebuild the project when changes are made.
Run yarn test
to run the tests once. To run tests on file changes, run yarn test:watch
.
Run yarn lint
to run the linter, or run yarn lint:fix
to run the linter and fix any automatically fixable issues.