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: remove modern-node-polyfills #984

Merged
merged 3 commits into from
Aug 5, 2024
Merged

Conversation

Kabir-Ivan
Copy link
Collaborator

No description provided.

Copy link
Member

@shadowusr shadowusr left a comment

Choose a reason for hiding this comment

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

If you tested it well and everything works on https://github.com/gemini-testing/testplane/tree/master/examples/component-testing, looks good to me (besides including the license)

@@ -23,6 +26,33 @@ export const getNodeModulePath = async ({
return resolve(moduleName, path.join(rootFileUrl, parent));
};

// Just copy-pasted from modern-node-polyfills to avoid potential errors
export const polyfillPath = async (moduleName: string): Promise<string> => {
Copy link
Member

Choose a reason for hiding this comment

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

If this was taken from a MIT-licensed repo, you are required to include the corresponding license. For instance, you can create a separate file where in the beginning you copy-paste modern-node-polyfills' license to comment and then this code.

For our own ease of use, I'd also include a permalink to source file on github.

@Kabir-Ivan Kabir-Ivan merged commit dc6217b into master Aug 5, 2024
2 checks passed
@Kabir-Ivan Kabir-Ivan deleted the remove-modern-node-polyfills branch August 5, 2024 09:46
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