Chore: Remove react-testing-lib from bundles (#50442)

* refactor(selectoptiontest): move helper function out of grafana/ui so testing-lib isn't in bundle

* test(selectoptionintest): update import location of helper function

* test(amroutes): put back missing selectOptionInTest helper

* test(selectoptionintest): clean up remaining file imports / exports

* test(queryeditor): fix failing import

* refactor(grafana-ui): reuse selectOptionInTest in SelectBase test
This commit is contained in:
Jack Westbrook
2022-06-09 11:10:48 +02:00
committed by GitHub
parent ab4171770e
commit ccd75d72f8
23 changed files with 23 additions and 31 deletions

View File

@@ -1,8 +1,7 @@
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import React from 'react';
import { selectOptionInTest } from '@grafana/ui';
import { selectOptionInTest } from 'test/helpers/selectOptionInTest';
import { InfluxQuery } from '../types';