Skip to content

Commit dd9234c

Browse files
authored
[e2e] bumped plugin-e2e version (#551)
- [x] Fix similar to grafana/grafana#114958 - [x] Updated create-plugin configuration as per https://grafana.com/developers/plugin-tools/reference/cli-commands#update
1 parent dac8401 commit dd9234c

File tree

13 files changed

+323
-509
lines changed

13 files changed

+323
-509
lines changed

.changeset/breezy-sails-pay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'grafana-github-datasource': patch
3+
---
4+
5+
update create-plugin configs

.changeset/fancy-teeth-search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'grafana-github-datasource': patch
3+
---
4+
5+
Fixed the broken E2E tests with updated plugin-e2e package

.config/.cprc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"version": "5.26.9"
2+
"version": "6.4.3",
3+
"features": {}
34
}

.config/.eslintrc

Lines changed: 0 additions & 30 deletions
This file was deleted.

.config/eslint.config.mjs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { defineConfig } from 'eslint/config';
2+
import grafanaConfig from '@grafana/eslint-config/flat.js';
3+
4+
export default defineConfig([
5+
...grafanaConfig,
6+
{
7+
rules: {
8+
'react/prop-types': 'off',
9+
},
10+
},
11+
{
12+
files: ['src/**/*.{ts,tsx}'],
13+
14+
languageOptions: {
15+
parserOptions: {
16+
project: './tsconfig.json',
17+
},
18+
},
19+
20+
rules: {
21+
'@typescript-eslint/no-deprecated': 'warn',
22+
},
23+
},
24+
{
25+
files: ['./tests/**/*'],
26+
27+
rules: {
28+
'react-hooks/rules-of-hooks': 'off',
29+
},
30+
},
31+
]);

.config/types/setupTests.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom';

.config/webpack/webpack.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ const config = async (env: Env): Promise<Configuration> => {
187187
new ReplaceInFileWebpackPlugin([
188188
{
189189
dir: DIST_DIR,
190-
files: ['plugin.json', 'README.md'],
190+
test: [/(^|\/)plugin\.json$/, /(^|\/)README\.md$/],
191+
191192
rules: [
192193
{
193194
search: /\%VERSION\%/g,

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { defineConfig } from 'eslint/config';
2+
import baseConfig from './.config/eslint.config.mjs';
3+
4+
export default defineConfig([
5+
{
6+
ignores: [
7+
'**/node_modules/',
8+
'**/coverage/',
9+
'**/ci/',
10+
'**/dist/',
11+
'**/.idea/',
12+
'test-results/',
13+
'playwright-report/',
14+
'blob-report/',
15+
'playwright/.cache/',
16+
'playwright/.auth/',
17+
'**/.eslintcache',
18+
'**/__debug_bin',
19+
'**/mage_output_file.go',
20+
'provisioning/',
21+
'**/.pnp.*',
22+
'.yarn/*',
23+
'!.yarn/patches',
24+
'!.yarn/plugins',
25+
'!.yarn/releases',
26+
'!.yarn/sdks',
27+
'!.yarn/versions',
28+
],
29+
},
30+
...baseConfig,
31+
]);

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25
55
require (
66
github.com/bradleyfalzon/ghinstallation/v2 v2.14.0
77
github.com/google/go-github/v72 v72.0.0
8-
github.com/grafana/grafana-plugin-sdk-go v0.283.0
8+
github.com/grafana/grafana-plugin-sdk-go v0.284.0
99
github.com/influxdata/tdigest v0.0.1
1010
github.com/pkg/errors v0.9.1
1111
github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7
@@ -100,7 +100,7 @@ require (
100100
github.com/prometheus/procfs v0.16.1 // indirect
101101
github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 // indirect
102102
golang.org/x/net v0.46.0 // indirect
103-
golang.org/x/sys v0.37.0 // indirect
103+
golang.org/x/sys v0.38.0 // indirect
104104
golang.org/x/text v0.30.0 // indirect
105105
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
106106
google.golang.org/grpc v1.76.0 // indirect

0 commit comments

Comments
 (0)