Browse Source

try build

merge-requests/1/merge
vargburz 2 years ago
parent
commit
ab92f6ea95
  1. 8
      jest.config.js
  2. 4
      src/module.ts

8
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();

4
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<SimpleOptions>(SimplePanel).setPanelOptions(builder => {
export const plugin = new PanelPlugin<SimpleOptions>(SimplePanel).setPanelOptions((builder) => {
return builder
.addTextInput({
path: 'text',
@ -35,6 +35,6 @@ export const plugin = new PanelPlugin<SimpleOptions>(SimplePanel).setPanelOption
},
],
},
showIf: config => config.showSeriesCount,
showIf: (config) => config.showSeriesCount,
});
});

Loading…
Cancel
Save