diff --git a/src/Plugins/Tia/Bootstrapper.php b/src/Plugins/Tia/Bootstrapper.php index 2c83eb13..b26ecb43 100644 --- a/src/Plugins/Tia/Bootstrapper.php +++ b/src/Plugins/Tia/Bootstrapper.php @@ -17,18 +17,12 @@ final readonly class Bootstrapper implements BootstrapperContract public function __construct(private Container $container) {} public function boot(): void - { - $this->container->add(State::class, new FileState($this->tempDir())); - } - - /** - * across worktrees of the same repo. See {@see Storage} for the key - */ - private function tempDir(): string { $testSuite = $this->container->get(TestSuite::class); assert($testSuite instanceof TestSuite); - return Storage::tempDir($testSuite->rootPath); + $tempDir = Storage::tempDir($testSuite->rootPath); + + $this->container->add(State::class, new FileState($tempDir)); } }