Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Is your feature request related to a problem? Please describe.
Should we add a top level __mocks__ folder like Zowe CLI has?zowe-cli/__mocks__
This might reduce some duplication between zowe-explorer and zowe-explorer-api package if they share the same VSCode mocks.
Original suggestion from @t1m0thyj in #2777
Describe the solution you'd like
Consolidate module mocks from Zowe Explorer API, the FTP extension, and Zowe Explorer itself into a top-level __mocks__ folder where necessary.
The most notable module mock that can be consolidated is vscode.ts.
Describe alternatives you've considered
Duplicating module mock types and functions in each file, but the current module mocks go against the "DRY" principle and can be easily avoided by merging the mock files where possible.
Is your feature request related to a problem? Please describe.
Original suggestion from @t1m0thyj in #2777
Describe the solution you'd like
Consolidate module mocks from Zowe Explorer API, the FTP extension, and Zowe Explorer itself into a top-level
__mocks__
folder where necessary.The most notable module mock that can be consolidated is
vscode.ts
.Describe alternatives you've considered
Duplicating module mock types and functions in each file, but the current module mocks go against the "DRY" principle and can be easily avoided by merging the mock files where possible.