Private
Public Access
1
0

chg: pkg: fix all eslint issues - & add example of the testing env #10

This commit is contained in:
2026-04-28 08:10:18 +02:00
parent 5daaf71ae7
commit 199bb7e525
2 changed files with 22 additions and 3 deletions

View File

@@ -212,7 +212,7 @@ const useServerCommunication = (gameAssoc, gameInherited, opponentName, isEnvDev
*/ */
if (!endRef.current && (!isTrueRestoredRef.current || 0 !== opponentLastSeenRef.current)) { if (!endRef.current && (!isTrueRestoredRef.current || 0 !== opponentLastSeenRef.current)) {
hideOverlay(); hideOverlay();
sounds.current.starting.play(); sounds.current.starting.play();
} }
}; };

View File

@@ -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). 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 ## Quick Start
```bash ```bash
@@ -143,9 +162,9 @@ class MyControllerTest extends WebTestCase
{ {
$user = UserFactory::createOne(); $user = UserFactory::createOne();
$client = static::createClient(); $client = static::createClient();
$client->request('GET', '/profile'); $client->request('GET', '/profile');
self::assertResponseRedirects('/login'); self::assertResponseRedirects('/login');
} }
} }