Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/MetaMask/test-snaps


https://github.com/MetaMask/test-snaps

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Test Snap Repo

## Deprecated

The contents of this repository have been moved to the [MetaMask/snaps](https://github.com/MetaMask/snaps/tree/main/packages/test-snaps) repository. This repository is no longer maintained.

The new test snaps page can be found here: https://metamask.github.io/snaps/test-snaps/latest.

---

A monorepo for Snaps used for QA and end-to-end tests, with an accompanying GitHub Pages website.
Like [MetaMask/test-dapp](https://github.com/MetaMask/test-dapp), but for Snaps.

## Usage

Run `yarn start` to serve the Snaps and the website.

Go to to see the test app.

## Contributing

The website build script makes certain assumptions about the monorepo, its snaps, and the contents of the website. Specifically, it assumes that every other package in the `packages/` directory is a valid snap, and that each snap has a `snap.config.js` with `cliOptions.port` set to a valid port number.

Finally, the website's `index.html` must have each snap's `local:` ID hardcoded of the form `local:http://localhost:PORT` where `PORT` is the port number from its `snap.config.js` file. This allows the website build script to replace these values with the corresponding `npm:` IDs for GitHub Pages deployments.