cypress-io / cypress-ct-definition-template

Template for authoring Component Framework Definitions
MIT License
2 stars 4 forks source link

Use custom definition without publishing to npm ? #1

Open carsonwood1 opened 1 year ago

carsonwood1 commented 1 year ago

I'm trying to make a custom definition to use Cypress to test components made through the widgets of the ArcGIS JS API. Widgets are basically just some internal component framework to the API (more info here). Rather obscure and specific use case and need a custom solution to mount and test these, so this looked promising!

Though how can I use a definition I make without publishing to npm? Could I just specify something in webpack and Cypress will know where to look?

junelau commented 10 months ago

npm link might be helpful here. see the testing section of this article: https://www.freecodecamp.org/news/how-to-create-and-publish-your-first-npm-package/