Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test framework types are static #573

Open
pboychev-bcom opened this issue Dec 13, 2024 · 0 comments
Open

Unit test framework types are static #573

pboychev-bcom opened this issue Dec 13, 2024 · 0 comments
Labels
area/tests Relates to tests and code coverage kind/enhancement Enhancement or improvement of existing features priority/medium triage/needed Needs to be discussed by project maintainers version/minor Introduces a non-breaking feature or change

Comments

@pboychev-bcom
Copy link
Contributor

pboychev-bcom commented Dec 13, 2024

Description

The unit test framework types are statically installed as Node.js dependencies downloaded from Maven central.
With the new implementation for configuring the type and version of framework used the types should be dynamically installed to match the configuration.

Steps to Reproduce

  1. Add tests in a TypeScript Aria Automation module.
  2. Configure the module to use Jest as a test framework.
  3. Use Jest specific definitions.
  4. Start the transpilation of the code base (via the build process of the module).

Preconditions: [What are the preconditions to reproduce the issue]
Use BTVA version 3.0.0 and later.

Expected behavior: [What you expect to happen]
The build process should pass, including the unit tests.

Actual behavior: [What actually happens]
The transpilation fails due to missing correct type definitions for the used framework + version.

Reproduces how often: [What percentage of the time does it reproduce]
On every build for configured framework other than Jasmine or for newer versions of Jasmine that are not matching the static types coming from the build tools built-in types.

Component/s: [What are the Build Tools for VMware Aria components affected by the issue (e.g. "common/artifact-manager", "maven/plugins/vra-ng", "typescript/vrotest", etc)]

  • "typescript/vrotest"
  • "typescript/vrotsc"

Affects Build/s: [Which are the Build Tools for VMware Aria releases / builds affected by the issue]
3.0.0 and above.

Environment

Client

  • Build Tools for VMware Aria Version:
  • Visual Studio Code Version:
  • OS Version:

Dependencies

Run: curl -o- https://raw.githubusercontent.com/vmware/build-tools-for-vmware-aria/main/health.sh | bash and paste the output here:

Server

  • vRealize Automation Version:
  • vRealize Orchestrator Version:
  • vRealize Operations Version:
  • vRealize Log Insight Version:

Failure Logs

Related issues and PRs

Additional Context

@VenelinBakalov VenelinBakalov added kind/enhancement Enhancement or improvement of existing features version/minor Introduces a non-breaking feature or change area/tests Relates to tests and code coverage triage/needed Needs to be discussed by project maintainers priority/medium labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Relates to tests and code coverage kind/enhancement Enhancement or improvement of existing features priority/medium triage/needed Needs to be discussed by project maintainers version/minor Introduces a non-breaking feature or change
Projects
None yet
Development

No branches or pull requests

2 participants