better tests?

pull/22/head
Bronwen 2021-05-22 16:36:11 -04:00
parent 6c62ae4994
commit 463ecc62c1
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class System {
this.rootDir = rootDir;
this.modules = modules;
this.createNamespace();
ensureDirSync(resolve(this.rootDir, '.system'));
const vault = readdirSync(resolve(this.rootDir, '.system')).map(v => resolve(this.rootDir, '.system', v));
const serializedInstances: SerializedInstance[] = vault.map((v) => JSON.parse(readFileSync(v).toString()));