Skip to content

[eslint-plugin-azure-sdk] Move from Mocha to Vitest#28969

Merged
mpodwysocki merged 5 commits into
mainfrom
feat/eslint-vt
Mar 20, 2024
Merged

[eslint-plugin-azure-sdk] Move from Mocha to Vitest#28969
mpodwysocki merged 5 commits into
mainfrom
feat/eslint-vt

Conversation

@mpodwysocki
Copy link
Copy Markdown
Contributor

Packages impacted by this PR

  • @azure/eslint-plugin-azure-sdk

Issues associated with this PR

Describe the problem that is addressed by this PR

Moves from mocha to vitest for eslint.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@mpodwysocki mpodwysocki enabled auto-merge (squash) March 19, 2024 17:47
"integration-test:node": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"unit-test:node": "mocha --require source-map-support/register --require ts-node/register --timeout 10000 --full-trace tests/**/*.ts",
"unit-test:node": "cross-env VITE_CJS_IGNORE_WARNING=true vitest",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you happen to know why we're seeing this warning? The linked page has some debugging tricks like running with VITE_CJS_TRACE

I have not tried any of it yet, mostly just curious if we can avoid this env var (and the dependency on cross-env) with a small tweak somewhere

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@maorleger we are seeing these because the CJS support for vite as noted here

@mpodwysocki mpodwysocki merged commit 2e9e303 into main Mar 20, 2024
@mpodwysocki mpodwysocki deleted the feat/eslint-vt branch March 20, 2024 17:11
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