From 199bb7e5259c3ccb2be985eb4b140739c80635a5 Mon Sep 17 00:00:00 2001 From: Lang <7system7@gmail.com> Date: Tue, 28 Apr 2026 08:10:18 +0200 Subject: [PATCH] chg: pkg: fix all eslint issues - & add example of the testing env #10 --- .../hooks/useServerCommunication.jsx | 2 +- docs/testing/TESTING.md | 23 +++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/assets/js/mine-seeker/hooks/useServerCommunication.jsx b/assets/js/mine-seeker/hooks/useServerCommunication.jsx index 2c1e187..e87825b 100644 --- a/assets/js/mine-seeker/hooks/useServerCommunication.jsx +++ b/assets/js/mine-seeker/hooks/useServerCommunication.jsx @@ -212,7 +212,7 @@ const useServerCommunication = (gameAssoc, gameInherited, opponentName, isEnvDev */ if (!endRef.current && (!isTrueRestoredRef.current || 0 !== opponentLastSeenRef.current)) { hideOverlay(); - sounds.current.starting.play(); + sounds.current.starting.play(); } }; diff --git a/docs/testing/TESTING.md b/docs/testing/TESTING.md index 31d3ceb..be6b890 100644 --- a/docs/testing/TESTING.md +++ b/docs/testing/TESTING.md @@ -2,6 +2,25 @@ MineSeeker-specific testing setup and workflows. For general PHPUnit/Symfony testing, see [Symfony Testing Docs](https://symfony.com/doc/current/testing.html). +## Example of the current tests + +```shell +$ bin/phpunit (master->origin/master|✚1…2⚑1) +PHPUnit 13.1.7 by Sebastian Bergmann and contributors. + +Runtime: PHP 8.5.5 +Configuration: /var/www/splendid/Mine/phpunit.dist.xml + +................................................................. 65 / 71 ( 91%) +...... 71 / 71 (100%) + +Time: 00:07.319, Memory: 86.50 MB + +OK (71 tests, 227 assertions) + +Faker seed used: 918823 +``` + ## Quick Start ```bash @@ -143,9 +162,9 @@ class MyControllerTest extends WebTestCase { $user = UserFactory::createOne(); $client = static::createClient(); - + $client->request('GET', '/profile'); - + self::assertResponseRedirects('/login'); } }