How to add a dev-dependency to package.json?

The whole client side testing story keeps untouched by now.

I wonder what way I should go if I want to add for e.g. karma to my package.json dev-dependencies.

Is there a working example of a client side component with a test?


If there is a need for development dependencies you can just add the dependency to the package.json of the project as
user added dependencies should not be touched in any way.

For client component tests all vaadin components should have tests so for instance contains tests that you could have a look at.

  • Mikael

Thanks Mikael,

I took a look at it, so probably I take a first tour with the vaadin-component-dev-dependencies and open-wc tests.