diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0d1ac94..0a77832 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,9 +20,10 @@ refreshing the page will be sufficient. 4. Run the tests before submitting a PR: `npx yarn test` 5. Run specific tests: `npx yarn test --testNamePattern "when some fields"` -# Building the Grafana Map Panel +## Releasing the Grafana Map Panel 1. Install packages: `npx yarn install` -2. Build into `dist/`, lint and run tests: `npx yarn build` -3. Build plugin on CI: `npx grafana-toolkit plugin:ci-build` -4. Create a zip package: `npx grafana-toolkit plugin:ci-package` +2. Run prettier: `npx grafana-toolkit plugin:dev` +3. Build into `dist/`, lint and run tests: `npx yarn build` +4. Build plugin on CI: `npx grafana-toolkit plugin:ci-build` +5. Create a zip package: `npx grafana-toolkit plugin:ci-package` When this process succeeds, packages can be found within the `ci/packages/` folder. diff --git a/src/data_formatter.test.ts b/src/data_formatter.test.ts index 6b8ea40..78b4411 100644 --- a/src/data_formatter.test.ts +++ b/src/data_formatter.test.ts @@ -458,9 +458,7 @@ describe('DataFormatter', () => { expect(data.highestValue).toEqual(5.555); expect(data.lowestValue).toEqual(3.333); expect(data.valueRange).toEqual(2.2219999999999995); - }); - }); describe('when data is coming from "json result" (dataframe)', () => { @@ -472,8 +470,8 @@ describe('DataFormatter', () => { decimals: 2, }, series: [ - {datapoints: [{ key: 'IE', name: 'Ireland', latitude: 1, longitude: 1, value: 3.333 }]}, - {datapoints: [{ key: 'SE', name: 'Sweden', latitude: 2, longitude: 2, value: 5.555 }]}, + { datapoints: [{ key: 'IE', name: 'Ireland', latitude: 1, longitude: 1, value: 3.333 }] }, + { datapoints: [{ key: 'SE', name: 'Sweden', latitude: 2, longitude: 2, value: 5.555 }] }, ], }; dataFormatter = new DataFormatter(ctrl); @@ -498,13 +496,10 @@ describe('DataFormatter', () => { expect(data.highestValue).toEqual(5.555); expect(data.lowestValue).toEqual(3.333); expect(data.valueRange).toEqual(2.2219999999999995); - }); - }); afterEach(() => { formattedData = []; }); - });