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

chore: upgrade vitest #48

Merged
merged 1 commit into from Nov 21, 2022
Merged

chore: upgrade vitest #48

merged 1 commit into from Nov 21, 2022

Conversation

just-boris
Copy link
Member

Description

An addition to #46. Putting vitest in a separate PR, because there are some breaking changes needed manual changes.

Related change in vitest: vitest-dev/vitest#2226. Their new behavior is more correct, because it is closer how node.js handles the same esm-commonjs imports

How has this been tested?

PR build, local

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -3,7 +3,7 @@
import { render } from "@testing-library/react";
import { expect, test } from "vitest";
import Grid, { GridProps } from "../../../lib/components/internal/grid";
import gridStyles from "../../../lib/components/internal/grid/styles.selectors.js";
import gridStyles from "../../../lib/components/internal/grid/styles.css.js";
Copy link
Member Author

Choose a reason for hiding this comment

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

.selectors.js contain commonjs code, .css.js contains esm. Without this change, gridStyles becomes: { default: {...classes...} } and does not work

@just-boris just-boris marked this pull request as ready for review November 18, 2022 15:37
@just-boris just-boris requested a review from a team as a code owner November 18, 2022 15:37
@just-boris just-boris requested review from rubencarvalho and removed request for a team November 18, 2022 15:37
vite.unit.config.js Show resolved Hide resolved
@just-boris just-boris merged commit 307b364 into main Nov 21, 2022
@just-boris just-boris deleted the upgrade branch November 21, 2022 10:44
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.

None yet

2 participants