Commit Graph

2 Commits

Author SHA1 Message Date
overlookmotel 5723f3d727 build(linter/plugins): add conformance build (#16751)
Supporting conformance testing is requiring adding extra code paths to `RuleTester` and main JS plugins code.

Previously, these paths were guarded by `if (DEBUG)` branches, so the extra code is not in release build. But ideally we don't want this code in debug build either, so the tests are testing a build that's identical to release build, except for enabling debug assertions.

Introduce a new build specifically for conformance testing, and gate code specific to conformance testing with `if (CONFORMANCE)` instead of `if (DEBUG)`.
2025-12-11 14:29:52 +00:00
overlookmotel 325af3273b test(linter/plugins): debug build for tests (#15921)
Generate a debug build, in addition to the normal release build.

In the debug build, `DEBUG` global is defined as `true` and `assertIsNonNull` does a runtime assertion. In release build, `DEBUG === false` and minifier removes debug-only code.

Run the tests in debug mode.

Debug build is generated in a separate directory from `dist`, so is *not* included in NPM package.
2025-11-21 13:40:31 +00:00