mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 15:16:50 +00:00
Monitor bundle size of module added on page load
Bug: T360590 Change-Id: Icdd1e38fc6d4015a37a3adccdf6b18ee0c54b687
This commit is contained in:
parent
e358e38591
commit
9b9a7ff739
6
bundlesize.config.json
Normal file
6
bundlesize.config.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
{
|
||||
"resourceModule": "ext.popups",
|
||||
"maxSize": "0.4 kB"
|
||||
}
|
||||
]
|
12
tests/phpunit/structure/BundleSizeTest.php
Normal file
12
tests/phpunit/structure/BundleSizeTest.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
namespace MediaWiki\Extensions\Popups\Tests\Structure;
|
||||
|
||||
use MediaWiki\Tests\Structure\BundleSizeTestBase;
|
||||
|
||||
class BundleSizeTest extends BundleSizeTestBase {
|
||||
|
||||
/** @inheritDoc */
|
||||
public function getBundleSizeConfig(): string {
|
||||
return dirname( __DIR__, 3 ) . '/bundlesize.config.json';
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue