npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cypress-e2e

v1.8.0-alpha.3

Published

Cypress is configured inside `/packages/cypress-e2e/cypress/Cypress.js` file. CLI root for `npx` scripts is **/packages/cypress-e2e** folder. In other folder Cypress will create new standalone instance, and current tests will not be included. To run with

Readme

Cypress test default configuration

Cypress is configured inside /packages/cypress-e2e/cypress/Cypress.js file. CLI root for npx scripts is /packages/cypress-e2e folder. In other folder Cypress will create new standalone instance, and current tests will not be included. To run with GUI: npx cypress open Run tests just in CLI: npx cypress run

Redux Store and Cypress

Redux Store injected into window browser object insode Designer package - /packages/designer/src/index.js root file. The declaration is: window.reduxStore = store . This makes Redux Store availible from JS console in browser. Cypress is able to read application state from window.Store by invoke getState() function. But it has some issues described and solved in cypress blog article: Cypress and Redux

  • Use Wait(1000) (give redux a time to react on Cypress very quick actions)
  • Work with async methods after cy.window().then([...function, where you can access store, here...]).

Elements identification in React designer and Cypress

Expression used in Designer App components: <react-component-name className='e2e-[selector]' /> Example: <LoginButton className="e2e-login-button" disabled={this.state.disabled} onClick={this.login} /> We were not able to use better valid data-test=value becuase of third party libraries.

#Window events in browser (alert, confirm, prompt) Cypress automaticly confirm alert(), and confirm() events. Prompt must be stubbed: cy.stub(win, 'prompt').returns('Prompt text to be written') - win will be rentured by cy.window().then(win => { cy.stub(...)}) - cy.stub() by default replace window.prompt() by the text and "OK" button click.

Extra testing tips

  • Use middle-step asserts like cy.get('#root_apiUrl').scrollIntoView().should("be.visible").type(url). It prevent cypress to be faster, than test steps.
  • Editable inlines: https://github.com/cypress-io/cypress/issues/1686

Azure pipeline

  • setup production url in cypress.json
    "baseUrl": "https://designer-test.feedyou.agency/"

#Scenario file structure ([testname].spec.js)