Skip to content

Commit 6179b65

Browse files
committed
refactor(tests): be explicit about tailwind css install
1 parent 520697e commit 6179b65

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

tests/Integration/Vite/ViteInstallerTest.php

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@ final class ViteInstallerTest extends FrameworkIntegrationTestCase
1616
#[PreCondition]
1717
protected function configure(): void
1818
{
19-
$this->installer->configure(
20-
$this->internalStorage . '/install',
21-
new Psr4Namespace('App\\', $this->internalStorage . '/install/app'),
22-
);
19+
$this->installer->configure(__DIR__ . '/install', new Psr4Namespace('App\\', __DIR__ . '/install/app'));
2320

2421
// force usage of npm because bun (which will be detected by our bun.lock)
2522
// will mutate Tempest's root install otherwise
26-
Filesystem\create_directory($this->internalStorage . '/install/node_modules');
27-
Filesystem\create_file($this->internalStorage . '/install/package-lock.json');
23+
Filesystem\create_directory(__DIR__ . '/install/node_modules');
24+
Filesystem\create_file(__DIR__ . '/install/package-lock.json');
2825
}
2926

3027
#[PostCondition]
@@ -36,14 +33,9 @@ protected function cleanup(): void
3633
#[Test]
3734
public function intalls_vite(): void
3835
{
39-
$this->console->call(InstallCommand::class, [ViteInstaller::class, '--force']);
40-
41-
try {
42-
$this->installer->assertFileExists('vite.config.ts');
43-
} catch (\Throwable $th) {
44-
dd(Filesystem\list_directory($this->internalStorage . '/install'));
45-
}
36+
$this->console->call(InstallCommand::class, [ViteInstaller::class, '--tailwindcss=false', '--force']);
4637

38+
$this->installer->assertFileExists('vite.config.ts');
4739
$this->installer->assertFileExists('app/main.entrypoint.ts');
4840

4941
$this->installer->assertFileContains('package.json', '"vite"');

0 commit comments

Comments
 (0)