Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

MetaMask/test-snaps

Repository files navigation

Test Snap Repo

Deprecated

The contents of this repository have been moved to the MetaMask/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, but for Snaps.

Usage

Run yarn start to serve the Snaps and the website.

Go to http://localhost:8080 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.

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published