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

Add tests for import attributes using with #3921

Merged
merged 5 commits into from
Oct 27, 2023

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Sep 13, 2023

The first commit just copy-pastes the existing files for assert tests: when reviewing, you should exclude that commit from the diff (diff of the remaining commits here).

If there are comments with suggested changes that would also apply to the assert tests, I'd prefer to defer resolving them and then I'll open a PR updating both the with and assert tests at the same time.

Closes #3843

@nicolo-ribaudo nicolo-ribaudo requested a review from a team as a code owner September 13, 2023 12:10
@nicolo-ribaudo nicolo-ribaudo force-pushed the import-attributes-3 branch 2 times, most recently from 3ad819f to 229f2dc Compare September 13, 2023 13:43
@@ -0,0 +1,2 @@
Make sure to keep the tests in this folder aligned
with the tests in the import-attributes folder.
Copy link
Member Author

Choose a reason for hiding this comment

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

What is the correct way of adding README files?

Linting complains:

/home/circleci/test262/test/language/import/import-assertions/README.md: FRONTMATTER - No valid YAML-formatted frontmatter
/home/circleci/test262/test/language/import/import-assertions/README.md: LICENSE - Invalid Copyright header

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

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

Thanks, and sorry for the long review time.

For future reference it'd be better to squash "Include changes from PR 3932" into "Copy all import assertions tests as a basis for import attributes tests", and the last two commits into "Update import attributes tests to use the with keyword".

In order not to delay this any longer, I'll do the squashing and fix up that one search-replace mistake, and merge it right away.


// When imported, this file will ensure that a linking error happens by
// importing a non-existent binding.
// It can be used to with that there is a linking error, which means
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// It can be used to with that there is a linking error, which means
// It can be used to assert that there is a linking error, which means

@ptomato ptomato merged commit 0a6dabf into tc39:main Oct 27, 2023
8 of 9 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the import-attributes-3 branch October 27, 2023 09:08
@ptomato ptomato mentioned this pull request Oct 31, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants