Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 30, 2021
1 parent 644fb4d commit 0373b1f
Showing 1 changed file with 42 additions and 26 deletions.
68 changes: 42 additions & 26 deletions core/instrument/test/jest-tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,35 @@ describe('component-tests', () => {
setLogOptions({ logLevel: 'none' });
});
it('Table', async () => {
const tests = await extractTests([
path.resolve(__dirname, '../../../ui/components/src/Table/Table.tsx'),
const tests = await extractTests(
path.resolve(
__dirname,
'../../../ui/components/src/Table/TableFilter.tsx',
'../../../ui/components/src/Table/Table.stories.tsx',
),
path.resolve(
__dirname,
'../../../ui/components/src/Table/TableGrouping.tsx',
),
path.resolve(
__dirname,
'../../../ui/components/src/Table/TablePagination.tsx',
),
path.resolve(
__dirname,
'../../../ui/components/src/Table/TableRowSelection.tsx',
),
path.resolve(
__dirname,
'../../../ui/components/src/Table/useTableLayout.ts',
),
]);
[
path.resolve(__dirname, '../../../ui/components/src/Table/Table.tsx'),
path.resolve(
__dirname,
'../../../ui/components/src/Table/TableFilter.tsx',
),
path.resolve(
__dirname,
'../../../ui/components/src/Table/TableGrouping.tsx',
),
path.resolve(
__dirname,
'../../../ui/components/src/Table/TablePagination.tsx',
),
path.resolve(
__dirname,
'../../../ui/components/src/Table/TableRowSelection.tsx',
),
path.resolve(
__dirname,
'../../../ui/components/src/Table/useTableLayout.ts',
),
],
);
expect(tests).toMatchObject({
results: [
{
Expand Down Expand Up @@ -329,12 +335,18 @@ describe('component-tests', () => {
}, 100000);

it('Catalog', async () => {
const tests = await extractTests([
const tests = await extractTests(
path.resolve(
__dirname,
'../../../plugins/addon-catalog/src/Catalog/Catalog.tsx',
'../../../plugins/addon-catalog/src/Catalog/Catalog.stories.tsx',
),
]);
[
path.resolve(
__dirname,
'../../../plugins/addon-catalog/src/Catalog/Catalog.tsx',
),
],
);
expect(tests).toMatchObject({
results: [
{
Expand Down Expand Up @@ -391,9 +403,13 @@ describe('component-tests', () => {
});
}, 100000);
it('Header', async () => {
const tests = await extractTests([
path.resolve(__dirname, '../../../ui/components/src/Header/Header.tsx'),
]);
const tests = await extractTests(
path.resolve(
__dirname,
'../../../ui/components/src/Header/Header.stories.tsx',
),
[path.resolve(__dirname, '../../../ui/components/src/Header/Header.tsx')],
);
expect(tests).toMatchObject({
results: [
{
Expand Down

0 comments on commit 0373b1f

Please sign in to comment.