Skip to content

Improve jest tests #45

Open
Open
@ryantxu

Description

@ryantxu

We got jest tests running, but I had to add some hacks to get it to pass. In particular, the panel does not seem to get initialized properly in the tests:

https://github.com/NatelEnergy/grafana-plotly-panel/blob/master/src/module.ts#L128

I tried to follow the pattern from grafana using:

https://github.com/NatelEnergy/grafana-plotly-panel/blob/master/specs/panel.jest.ts#L30

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions