Skip to content

Commit a97158e

Browse files
committed
Fix No such file or directory error on running tests;
1 parent 7d08de0 commit a97158e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/AutoDocControllerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public function setUp(): void
2323
self::$localDriverFilePath ??= 'documentation.json';
2424
self::$documentation ??= $this->getJsonFixture('tmp_data');
2525

26+
if (!is_dir(self::$documentationDirectory)) {
27+
mkdir(self::$documentationDirectory);
28+
}
2629
file_put_contents(self::$documentationDirectory.self::$localDriverFilePath, json_encode(self::$documentation));
2730

2831
config(['auto-doc.drivers.local.production_path' => self::$localDriverFilePath]);

0 commit comments

Comments
 (0)