Test plugins: Add datasource test plugin with field tests (#95472)

* add new test plugin

* add some field validation tests

* update lockfile

* fix bad test file name
This commit is contained in:
Erik Sundell
2024-11-01 08:25:27 +01:00
committed by GitHub
parent f3bdf4455c
commit c29ed503db
19 changed files with 500 additions and 1 deletions
@@ -0,0 +1,9 @@
import { DataSourcePlugin } from '@grafana/data';
import { DataSource } from './datasource';
import { ConfigEditor } from './components/ConfigEditor';
import { QueryEditor } from './components/QueryEditor';
import { MyQuery, MyDataSourceOptions } from './types';
export const plugin = new DataSourcePlugin<DataSource, MyQuery, MyDataSourceOptions>(DataSource)
.setConfigEditor(ConfigEditor)
.setQueryEditor(QueryEditor);