mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
test(sites): drop the frameworks config assertions
The file asserted that frameworks.php holds the literals frameworks.php holds, so it restated the diff beside it rather than pinning anything the config could not state itself. Nothing in tests/unit asserts config literals: CollectionsTest is the one suite that loads a config file directly, and it checks a structural invariant instead. The rendering tests in DetectionTest already cover the behaviour that the output directory change turns on, over both build layouts.
This commit is contained in:
1 parent
1db56b7a74
commit
5be1b404b7
1 file changed
-35
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Unit\Deployment;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class FrameworksTest extends TestCase
|
||||
{
|
||||
private array $frameworks;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
// Read the file rather than Config, which sibling suites overwrite.
|
||||
$this->frameworks = require __DIR__ . '/../../../app/config/frameworks.php';
|
||||
}
|
||||
|
||||
public function testTanStackStartAdaptersUseViteOutput(): void
|
||||
{
|
||||
$adapters = $this->frameworks['tanstack-start']['adapters'];
|
||||
|
||||
$this->assertSame('./dist', $adapters['ssr']['outputDirectory']);
|
||||
$this->assertSame('./dist/client', $adapters['static']['outputDirectory']);
|
||||
}
|
||||
|
||||
public function testNuxtStaticOutputIsInsideDotOutput(): void
|
||||
{
|
||||
$adapters = $this->frameworks['nuxt']['adapters'];
|
||||
|
||||
$this->assertSame('./.output/public', $adapters['static']['outputDirectory']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user