Skip to content

Commit 0d3305d

Browse files
committed
move QueryEditor.test.tsx to ui folder
./tests/unit folder structure should match the ./src structure
1 parent 30a7d8d commit 0d3305d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
const standard = require('@grafana/toolkit/src/config/jest.plugin.config');
66

7-
const extraTestPath = '**/tests/unit/*';
7+
const extraTestPath = '**/tests/unit/**/*';
88
const config = standard.jestConfig();
99
config.testMatch.push(extraTestPath);
1010

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { act, render, screen } from '@testing-library/react';
22
import * as React from 'react';
33
import selectEvent from 'react-select-event';
44

5-
import { DataSource } from '../../src/DataSource';
6-
import { defaultRequestSpec } from '../../src/RequestSpec';
7-
import { CmkQuery } from '../../src/types';
8-
import { QueryEditor } from '../../src/ui/QueryEditor';
5+
import { DataSource } from '../../../src/DataSource';
6+
import { defaultRequestSpec } from '../../../src/RequestSpec';
7+
import { CmkQuery } from '../../../src/types';
8+
import { QueryEditor } from '../../../src/ui/QueryEditor';
99

1010
const completions: Record<string, string[][]> = {
1111
sites: [

0 commit comments

Comments
 (0)