🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Jun 28, 2022

Summary

3.x-stable version of #5046.

Introduces a new test API, includesModule. The method returns whether
a particular module like "ajax" or "deprecated" is included in the current
jQuery build; it handles the slim build as well. The util was created so that
we don't treat presence of particular APIs to decide whether to run a test as
then if we accidentally remove an API, the tests would still not fail.

Fixes gh-5069

Checklist

  • New tests have been added to show the fix or feature works
  • Grunt build and unit tests pass locally with these changes
  • If needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com

@mgol mgol added this to the 3.6.1 milestone Jun 28, 2022
@mgol mgol self-assigned this Jun 28, 2022
@mgol mgol changed the base branch from main to 3.x-stable June 28, 2022 10:59
@jquery jquery deleted a comment from linux-foundation-easycla bot Jun 28, 2022
@mgol mgol force-pushed the 3.x-test-includesModule branch from c08b1a2 to 7d36321 Compare June 28, 2022 11:00
@mgol mgol changed the title 3.x test includes module Tests: Exclude tests based on compilation flags, not API presence (3.x version) Jun 28, 2022
@mgol mgol marked this pull request as ready for review June 28, 2022 11:07
@mgol mgol requested a review from timmywil June 28, 2022 11:07
Introduces a new test API, `includesModule`. The method returns whether
a particular module like "ajax" or "deprecated" is included in the current
jQuery build; it handles the slim build as well. The util was created so that
we don't treat presence of particular APIs to decide whether to run a test as
then if we accidentally remove an API, the tests would still not fail.

Fixes jquerygh-5069
Ref jquerygh-5046

(partially cherry picked from commit fae5fee)
@mgol mgol force-pushed the 3.x-test-includesModule branch from 7d36321 to 357a461 Compare June 28, 2022 11:10
@mgol mgol merged commit bc16512 into jquery:3.x-stable Jul 12, 2022
@mgol mgol deleted the 3.x-test-includesModule branch July 12, 2022 15:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

2 participants