Issue #3479160 by longwave, catch, fjgarlin, nod_: 11.0.x yarn dependencies have mushroomed
(cherry picked from commit 858610568b
)
merge-requests/9004/merge
parent
fcf7d526b3
commit
130507c4a0
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Drupal\Tests\ckeditor5\Unit;
|
||||
|
||||
use Drupal\Tests\UnitTestCase;
|
||||
|
||||
/**
|
||||
* @group ckeditor5
|
||||
* @internal
|
||||
*/
|
||||
class VersionTest extends UnitTestCase {
|
||||
|
||||
/**
|
||||
* Ensure that CKEditor5 versions are aligned.
|
||||
*/
|
||||
public function testVersionAlignment(): void {
|
||||
$package_json = json_decode(file_get_contents(__DIR__ . '/../../../../../package.json'), TRUE);
|
||||
$ckeditor_dependencies = array_filter($package_json['devDependencies'], fn ($key) => str_starts_with($key, '@ckeditor/ckeditor5-'), ARRAY_FILTER_USE_KEY);
|
||||
$this->assertCount(1, array_unique($ckeditor_dependencies));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue