jquery/build/tasks/lib/slim-build-flags.js
Michał Gołębiowski-Owczarek fae5fee8b4
Tests: Exclude tests based on compilation flags, not API presence
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
Closes gh-5046
2022-06-28 12:39:01 +02:00

11 lines
151 B
JavaScript

"use strict";
// NOTE: keep it in sync with test/data/testinit.js
module.exports = [
"-ajax",
"-callbacks",
"-deferred",
"-effects",
"-queue"
];