Skip to content

Commit 5c9084c

Browse files
Philipp SiegmantelTheSpacyCat
authored andcommitted
move unit tests to a dedicated location
1 parent f3887cb commit 5c9084c

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

jest.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44

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

7+
const extraTestPath = '**/tests/unit/*';
8+
const config = standard.jestConfig();
9+
config.testMatch.push(extraTestPath);
10+
711
// This process will use the same config that `yarn test` is using
8-
module.exports = standard.jestConfig();
12+
module.exports = config;

test/templategraphs.test.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { buildUrlWithParams } from './DataSource';
2-
import { buildRequestBody } from './graphspecs';
1+
import { buildUrlWithParams } from '../../src/DataSource';
2+
import { buildRequestBody } from '../../src/graphspecs';
33

44
describe('URL conversions', () => {
55
it('Params', () => {

0 commit comments

Comments
 (0)