add(TestSuite::class, $testSuite); (new Configuration)->directory('.pest/tia'); new Bootstrapper($container)->boot(); $state = $container->get(State::class); if (! $state instanceof FileState) { throw new RuntimeException('Expected the TIA state to use file storage.'); } expect(Storage::tempDir('/project'))->toBe('/project'.DIRECTORY_SEPARATOR.'.pest/tia') ->and($state->pathFor('graph.json'))->toBe($testSuite->rootPath.DIRECTORY_SEPARATOR.'.pest/tia/graph.json'); }); it('uses an absolute configured directory', function (): void { (new Configuration)->directory('/tmp/pest-tia'); expect(Storage::tempDir('/project'))->toBe('/tmp/pest-tia'); });