diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..bcf17c9 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,8 @@ +// This file is needed because it is used by vscode and other tools that +// call `jest` directly. However, unless you are doing anything special +// do not edit this file + +const standard = require('@grafana/toolkit/src/config/jest.plugin.config'); + +// This process will use the same config that `yarn test` is using +module.exports = standard.jestConfig(); diff --git a/src/module.ts b/src/module.ts index 393bbed..014037a 100644 --- a/src/module.ts +++ b/src/module.ts @@ -2,7 +2,7 @@ import { PanelPlugin } from '@grafana/data'; import { SimpleOptions } from './types'; import { SimplePanel } from './SimplePanel'; -export const plugin = new PanelPlugin(SimplePanel).setPanelOptions(builder => { +export const plugin = new PanelPlugin(SimplePanel).setPanelOptions((builder) => { return builder .addTextInput({ path: 'text', @@ -35,6 +35,6 @@ export const plugin = new PanelPlugin(SimplePanel).setPanelOption }, ], }, - showIf: config => config.showSeriesCount, + showIf: (config) => config.showSeriesCount, }); });