# Snaps Simulator

A simulator for MetaMask Snaps, to be used for testing and development. The
latest version can be found [here](https://metamask.github.io/snaps/snaps-simulator/latest/).

## Contributing

### Setup

- Install [Node.js](https://nodejs.org) version 16
  - If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you.
- Install [Yarn v3](https://yarnpkg.com/getting-started/install)
- Run `yarn install` to install dependencies and run any required post-install scripts

### Building

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.

### Testing and Linting

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.
