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: Adds set native value dom util #81

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pan-kot
Copy link
Member

@pan-kot pan-kot commented Feb 5, 2025

Required for: cloudscape-design/components#3252

Rel: AWSUI-60345

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

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.92%. Comparing base (bcb5c78) to head (4b23257).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #81   +/-   ##
=======================================
  Coverage   95.92%   95.92%           
=======================================
  Files           9        9           
  Lines         319      319           
  Branches       68       68           
=======================================
  Hits          306      306           
  Misses         13       13           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pan-kot pan-kot requested a review from avinashbot February 5, 2025 16:13
@pan-kot pan-kot marked this pull request as ready for review February 5, 2025 16:13
@pan-kot pan-kot requested a review from a team as a code owner February 5, 2025 16:13
@@ -7,3 +7,23 @@ import * as React from 'react';
import { act as reactDomAct } from 'react-dom/test-utils';

export const act = ('act' in React ? React.act : reactDomAct) as typeof reactDomAct;

// Copied from @testing-library/dom/dist/events.js
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this is sufficient attribution for the usage. We might need to include the license type as well as a link to the original source code.

Or maybe something similar to what we have here: https://github.com/cloudscape-design/components/blob/main/THIRD-PARTY-LICENSES

Copy link
Member

Choose a reason for hiding this comment

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

Do we have any other examples in the components repo of usages of just a single function being copied in?

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