headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.22k stars 156 forks source link

[RFE] test setup for plugins #569

Closed illume closed 1 year ago

illume commented 2 years ago

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.

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

illume commented 2 years ago

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.

joaquimrocha commented 1 year ago

This is done.