better tests?
parent
6c62ae4994
commit
463ecc62c1
|
|
@ -29,6 +29,8 @@ class System {
|
||||||
this.modules = modules;
|
this.modules = modules;
|
||||||
this.createNamespace();
|
this.createNamespace();
|
||||||
|
|
||||||
|
ensureDirSync(resolve(this.rootDir, '.system'));
|
||||||
|
|
||||||
const vault = readdirSync(resolve(this.rootDir, '.system')).map(v => resolve(this.rootDir, '.system', v));
|
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()));
|
const serializedInstances: SerializedInstance[] = vault.map((v) => JSON.parse(readFileSync(v).toString()));
|
||||||
|
|
||||||
|
|
|
||||||
Reference in New Issue