-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EPMDEDP-12391]: feat: Update Create/Edit widget snapshot tests
Change-Id: Ied3de45a13fa1f3db411422143058541b8cb51f7
- Loading branch information
1 parent
72ee99f
commit f52b4b0
Showing
70 changed files
with
8,634 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
module.exports = { | ||
coverageDirectory: './analysis/coverage/', | ||
moduleNameMapper: { | ||
'^@kinvolk/headlamp-plugin/lib$': '<rootDir>/tests/headlamp-plugin/lib/index.ts', | ||
'^@kinvolk/headlamp-plugin/lib/K8s/(.*)': ['<rootDir>/tests/headlamp-plugin/lib/k8s/$1'], | ||
'^@kinvolk/headlamp-plugin/lib$': '<rootDir>/mocks/headlamp-plugin/lib/index.ts', | ||
'^@kinvolk/headlamp-plugin/lib/K8s/(.*)': ['<rootDir>/mocks/headlamp-plugin/lib/k8s/$1'], | ||
'^@kinvolk/headlamp-plugin/lib/CommonComponents': [ | ||
'<rootDir>/tests/headlamp-plugin/components/common/index.tsx', | ||
'<rootDir>/mocks/headlamp-plugin/components/common/index.tsx', | ||
], | ||
'^@kinvolk/headlamp-plugin/lib/components/common': [ | ||
'<rootDir>/tests/headlamp-plugin/components/common/index.tsx', | ||
'<rootDir>/mocks/headlamp-plugin/components/common/index.tsx', | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This folder contains Headlamp's components and logic mocks for testing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* @jest-environment jsdom | ||
*/ | ||
|
||
import { SnackbarProvider } from 'notistack'; | ||
import React from 'react'; | ||
import { QueryClient, QueryClientProvider } from 'react-query'; | ||
|
||
export const TestWrapper: React.FC = ({ children }) => { | ||
const queryClient = new QueryClient(); | ||
|
||
return ( | ||
<QueryClientProvider client={queryClient}> | ||
<SnackbarProvider>{children}</SnackbarProvider> | ||
</QueryClientProvider> | ||
); | ||
}; |
2 changes: 1 addition & 1 deletion
2
src/k8s/Application/utils/editApplicationInstance/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Todo: write new tests | ||
// Todo: write new mocks | ||
test('true', () => {}); |
2 changes: 1 addition & 1 deletion
2
src/k8s/EDPCDPipeline/utils/editCDPipelineInstance/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Todo: write new tests | ||
// Todo: write new mocks | ||
test('true', () => {}); |
2 changes: 1 addition & 1 deletion
2
src/k8s/EDPCDPipelineStage/utils/editCDPipelineStageInstance/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Todo: write new tests | ||
// Todo: write new mocks | ||
test('true', () => {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Todo: write new tests | ||
// Todo: write new mocks | ||
test('true', () => {}); |
2 changes: 1 addition & 1 deletion
2
src/k8s/EDPCodebaseBranch/utils/editCodebaseBranchInstance/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Todo: write new tests | ||
// Todo: write new mocks | ||
test('true', () => {}); |
2 changes: 1 addition & 1 deletion
2
src/k8s/PipelineRun/utils/createAutotestRunnerPipelineRunInstance/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Todo: write new tests | ||
// Todo: write new mocks | ||
test('true', () => {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.