headlamp icon indicating copy to clipboard operation
headlamp copied to clipboard

[RFE] test setup for plugins

Open illume opened this issue 2 years ago • 1 comments

Current situation

Currently there is no test setup for plugins, so people have to do it themselves.

Impact

For people wanting to write tests it's easier if it's setup and working.

Ideal future situation

npm run test for plugins works.

Implementation options

Like with the tools create react app supplies.

  • jest
  • react testing library

Storybook is kind of related, maybe worth considering at the same time.

illume avatar Jun 28 '22 13:06 illume

Probably need a copy of Headlamp frontend/ code for this. (Either copied into headlamp-plugin or via a headlamp package.)

Because the tests run the code and therefore just supplying types are not sufficient.

illume avatar Jul 05 '22 08:07 illume

This is done.

joaquimrocha avatar Jul 25 '23 12:07 joaquimrocha