mediawiki-extensions-Popups/.nycrc.json
Jon Robson 0febc3f54d Extensible previews
Allow extensions to register new types of previews via
extension attributes.

Changes:

- The check for reference previews doesn't make sense
as $('a[ href*="#" ]' ) will match any elements with a hash
fragment, so the additional check to Title.getFragment
will not provide a different result. This was introduced in
I9ec57e0fbb0d21beaaa7b359c1c2bef64d2c14f5
- Links that point to themselves are marked with mw-selflink
in MediaWiki so this can use the not selector we already have.
- The new API is used internally and only available via extension
Attributes
- An example is provided in SkinJSON
(https://github.com/jdlrobson/mediawiki-skins-skinjson/pull/14)

Bug: T233099
Change-Id: Iefe98c1f0422dbf034e385b1a41a859d030a2cf4
2022-11-22 08:45:27 -08:00

32 lines
1 KiB
JSON

{
"//": "todo: enable caching. There are too many other issues to verify that",
"//": "caching works correctly.",
"cache": false,
"//": "todo: check coverage on all files not just those included in tests.",
"//": "Enable when",
"//": "https://github.com/istanbuljs/nyc/issues/537#issuecomment-390814662",
"//": "is fixed.",
"all": false,
"//": "Ignore files in vendor/, resources/, and elsewhere.",
"include": [ "src/**/*.js" ],
"//": "Set the coverage percentage by category thresholds.",
"statements": 84,
"branches": 70,
"functions": 82,
"lines": 90,
"//": "Fail if the coverage is below threshold.",
"check-coverage": true,
"//": "Work around source maps being included ",
"//": "https://github.com/istanbuljs/nyc/issues/847:",
"//": " Error: ENAMETOOLONG: name too long, open '.../vagrant/mediawiki/extensions/Popups/src/data:application/json;...'",
"//": "Unfortunately, the reported line numbers appear to be",
"//": "nondeterministic across runs when all is enabled and incorrect when",
"//": "disabled.",
"sourceMap": false
}