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

test: move native loader test to rspack-test-tools #7303

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

colinaaa
Copy link
Contributor

Summary

The test of #4945 is put in packages/rspack/tests which is no longer running. Moving it into rspack-test-tools and fix the test.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@LingyuCoder LingyuCoder merged commit 545c0e3 into web-infra-dev:main Jul 25, 2024
33 checks passed
@@ -4,7 +4,9 @@ module.exports = function () {
const callback = this.async();

this.resolve(__dirname, "./not-exist", (e1, r1) => {
assert(e1 instanceof Error);
// Note that e1 is not instanceof Error
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if this is expected /cc @h-a-n-a

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, it's not 🥲

Copy link
Collaborator

Choose a reason for hiding this comment

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

@colinaaa This seems to be a known jest issue jestjs/jest#11808 and it turned out the assertion works outside of jest runner.

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.

3 participants