Chore: consolidate e2e scripts in package.json (#74906)

consolidate e2e scripts in package.json + almost fix benchmarking tests
This commit is contained in:
Ashley Harrison
2023-09-14 15:00:29 +01:00
committed by GitHub
parent 1ee485ac43
commit 3fdf96d241
5 changed files with 9 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ module.exports = defineConfig({
});
on('task', {
getJSONFilesFromDir: async (relativePath) => {
getJSONFilesFromDir: async ({ relativePath }) => {
// CWD is set for plugins in the cli but not for the main grafana repo: https://github.com/grafana/grafana/blob/main/packages/grafana-e2e/cli.js#L12
const projectPath = config.env.CWD || config.fileServerFolder || process.cwd();
const directoryPath = path.join(projectPath, relativePath);