Skip to content

test(client-fluid-telemetry): support build-and-test:unit:*#27003

Open
jason-ha wants to merge 2 commits intomicrosoft:mainfrom
jason-ha:test/fluid-telemetry-support-build-and-test
Open

test(client-fluid-telemetry): support build-and-test:unit:*#27003
jason-ha wants to merge 2 commits intomicrosoft:mainfrom
jason-ha:test/fluid-telemetry-support-build-and-test

Conversation

@jason-ha
Copy link
Copy Markdown
Contributor

fluid-telemetry has specialized unit tests with no entry that allows build-and-test:unit:esm to build or test.

  1. Add test:mocha:esm pointing to test:mocha:esm:unit.
  2. Update task deps such that any of the mocha tests can be fluid-build tasks (get automatic build before test run).

fluid-telemetry has specialized unit tests with no entry that allows `build-and-test:unit:esm` to build or test.
1. Add `test:mocha:esm` pointing to `test:mocha:esm:unit`.
2. Update task deps such that any of the mocha tests can be fluid-build tasks (get automatic build before run).
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates @fluidframework/fluid-telemetry’s test script surface so the repo-level build-and-test:unit:* / test:unit:* fluid-build tasks can correctly build and execute the package’s Mocha unit tests (especially for ESM), and so the package’s more specific Mocha scripts can be run as fluid-build tasks with appropriate build prerequisites.

Changes:

  • Add test:mocha:esm and test:mocha:cjs scripts as unit-test aliases to match the repo’s fluid-build task expectations.
  • Add fluidBuild.tasks entries so test:mocha:*:{unit,all,end-to-end} tasks automatically depend on the appropriate build:test:* tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants