Polaris is the codename for the universal Header, Footer & Toast notifications for XFINITY Websites.
This repo contains the Vanilla Web Components for those 3 custom elements. We released this to provide an example of how you can build and deploy web components to share across multiple projects. This project is not maintained and only serves as an example. If you're interested in learning more about web components, check out Open WC
npm i
npm start
`yarn test`
Polaris uses Web Component Tester as its JavaScript testing framework.
You can run WCT using yarn test or wct - install wct globally first with yarn global add wct
Polaris uses Istanbul in tracing JavaScript code coverage.
How to generate code coverage:
-
Run a test
yarn test -
View the report in your browser:
open coverage/index.html
`yarn build`