Skip to content

Group common methods into Singleton classes #2109

@zFernand0

Description

@zFernand0

Is your feature request related to a problem? Please describe.

In an effort to reduce the maintenance efforts of Zowe Explorer, it might be convenient to group related methods under a single class. This should help streamline how imports are handled when developing new features and how tests are written for these new methods.

Describe the solution you'd like

Ideally we will use singleton classes 😋

Describe alternatives you've considered

We can consider using:

  • Classes with static methods: may have its own drawbacks (not all of which may apply in our case)
  • Namespaces: may cause issues when writing jest-tests for method that are not explicitly exported (medium)

Additional context

Suggestion:

Metadata

Metadata

Assignees

Labels

Technical DebtIncludes Architecture, Code, Testing, Automation debtenhancementNew feature or requestpriority-mediumNot functioning - next quarter if capacity permitsv3

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions