Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MetaMask/test-snaps
https://github.com/MetaMask/test-snaps
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/MetaMask/test-snaps
- Owner: MetaMask
- Archived: true
- Created: 2022-01-04T21:08:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T11:28:11.000Z (about 1 year ago)
- Last Synced: 2024-04-14T10:47:56.403Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 9.34 MB
- Stars: 20
- Watchers: 28
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-metamask-snaps - MetaMask/test-snaps - A monorepo for Snaps used for QA and end-to-end tests, with an accompanying GitHub Pages website. Like MetaMask/test-dapp, but for Snaps. (Developer Resources / Templates)
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.