Skip to content

Commit 347440a

Browse files
committed
remove unit group for ui unit tests
1 parent c185820 commit 347440a

File tree

261 files changed

+26
-3211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+26
-3211
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"start:web:public": "cross-env PUBLIC_DEV=true webpack serve --config ./configs/webpack.config.web.dev.babel.js",
3939
"test": "jest ./redisinsight/ui -w 1",
4040
"test:watch": "jest ./redisinsight/ui --watch -w 1",
41-
"test:cov": "jest ./redisinsight/ui --group=unit --group=component --coverage -w 1",
42-
"test:cov:unit": "jest ./redisinsight/ui/src/slices/tests --group=unit --coverage -w 1",
41+
"test:cov": "jest ./redisinsight/ui --coverage -w 1",
42+
"test:cov:unit": "jest ./redisinsight/ui --group=-component --coverage -w 1",
4343
"test:cov:component": "jest ./redisinsight/ui --group=component --coverage -w 1",
4444
"type-check:ui": "tsc --project redisinsight/ui --noEmit"
4545
},

redisinsight/ui/src/App.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ import { render } from 'uiSrc/utils/test-utils'
33

44
import App from './App'
55

6-
/**
7-
* App tests
8-
*
9-
* @group unit
10-
*/
116
describe('App', () => {
127
it('should render', () => {
138
expect(render(<App />)).toBeTruthy()

redisinsight/ui/src/Router.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ import { render } from 'uiSrc/utils/test-utils'
33

44
import Router from './Router'
55

6-
/**
7-
* Router tests
8-
*
9-
* @group unit
10-
*/
116
describe('Router', () => {
127
it('should render', () => {
138
expect(

redisinsight/ui/src/components/action-bar/ActionBar.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ import ActionBar, { Props } from './ActionBar'
55

66
const mockedProps = mock<Props>()
77

8-
/**
9-
* ActionBar tests
10-
*
11-
* @group unit
12-
*/
138
describe('ActionBar', () => {
149
it('should render', () => {
1510
expect(render(<ActionBar {...instance(mockedProps)} />)).toBeTruthy()

redisinsight/ui/src/components/analytics-tabs/AnalyticsTabs.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ jest.mock('react-router-dom', () => ({
1111
}),
1212
}))
1313

14-
/**
15-
* StreamTabs tests
16-
*
17-
* @group unit
18-
*/
1914
describe('StreamTabs', () => {
2015
it('should render', () => {
2116
expect(render(<AnalyticsTabs />)).toBeTruthy()

redisinsight/ui/src/components/bottom-group-components/BottomGroupComponents.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ beforeEach(() => {
2525
const commandHelperId = 'command-helper'
2626
const cliId = 'cli'
2727

28-
/**
29-
* BottomGroupComponents tests
30-
*
31-
* @group unit
32-
*/
3328
describe('BottomGroupComponents', () => {
3429
it('should render', () => {
3530
expect(

redisinsight/ui/src/components/bottom-group-components/components/bottom-group-minimized/BottomGroupMinimized.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ beforeEach(() => {
1212
store.clearActions()
1313
})
1414

15-
/**
16-
* BottomGroupMinimized tests
17-
*
18-
* @group unit
19-
*/
2015
describe('BottomGroupMinimized', () => {
2116
it('should render', () => {
2217
expect(

redisinsight/ui/src/components/bulk-actions-config/BulkActionsConfig.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ const deletingMock = [{
5050
}
5151
}]
5252

53-
/**
54-
* BulkActionsConfig tests
55-
*
56-
* @group unit
57-
*/
5853
describe('BulkActionsConfig', () => {
5954
it('should render', () => {
6055
expect(render(<BulkActionsConfig />)).toBeTruthy()

redisinsight/ui/src/components/charts/donut-chart/DonutChart.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ const mockData: ChartData[] = [
1212
{ value: 15, name: 'F', color: [50, 50, 50] },
1313
]
1414

15-
/**
16-
* DonutChart tests
17-
*
18-
* @group unit
19-
*/
2015
describe('DonutChart', () => {
2116
it('should render with empty data', () => {
2217
expect(render(<DonutChart data={[]} />)).toBeTruthy()

redisinsight/ui/src/components/cli/Cli/Cli.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ jest.mock(redisCommandsPath, () => {
1515
}
1616
})
1717

18-
/**
19-
* CLI tests
20-
*
21-
* @group unit
22-
*/
2318
describe('CLI', () => {
2419
it('should render', () => {
2520
expect(render(<CLI />)).toBeTruthy()

0 commit comments

Comments
 (0)