-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4be6bd
commit d1f7e6a
Showing
33 changed files
with
2,669 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
useK8sWatchResource: jest.fn(), | ||
useFlag: jest.fn(), | ||
getGroupVersionKindForModel: jest.fn(), | ||
k8sGet: jest.fn(), | ||
}; |
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,6 @@ | ||
module.exports = (request, options) => { | ||
if (request.startsWith('@console/internal') || request.startsWith('@openshift-console')) { | ||
return `${options.rootDir}/__mocks__/console-dynamic-plugin-sdk.js`; | ||
} | ||
return options.defaultResolver(request, options); | ||
}; |
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,3 +1,5 @@ | ||
module.exports = { | ||
...require('@aonic-ui/jest-config/jest.config.cjs') | ||
...require('@aonic-ui/jest-config/jest.config.cjs'), | ||
resolver: '<rootDir>/jest-resolver.cjs', | ||
transformIgnorePatterns: ['<rootDir>/node_modules/(?!lodash-es)'], | ||
}; |
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,4 @@ | ||
export const DELETED_RESOURCE_IN_K8S_ANNOTATION = 'resource.deleted.in.k8s'; | ||
export const RESOURCE_LOADED_FROM_RESULTS_ANNOTATION = 'resource.loaded.from.tektonResults'; | ||
export const ALL_NAMESPACES_KEY = '#ALL_NS#'; | ||
export const FLAG_PIPELINE_TEKTON_RESULT_INSTALLED = 'PIPELINE_TEKTON_RESULT_INSTALLED'; |
Oops, something went wrong.