diff --git a/.gitignore b/.gitignore index 81cbd001..6f0099eb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ services/auth/secrets.json *.log.* .directory +test-radata/ radata/ radata-*.tmp *.cert diff --git a/utils/GunSmith/GunSmith.spec.js b/utils/GunSmith/GunSmith.spec.js index a577b99a..55cb8288 100644 --- a/utils/GunSmith/GunSmith.spec.js +++ b/utils/GunSmith/GunSmith.spec.js @@ -6,6 +6,13 @@ // @ts-check const Gun = require('./GunSmith') const words = require('random-words') +const fs = require('fs') + +if (!fs.existsSync('./test-radata')) { + fs.mkdirSync('./test-radata') +} + + /** @type {ReturnType} */ // eslint-disable-next-line init-declarations @@ -32,7 +39,7 @@ describe('constructor', () => { instance = Gun({ axe: false, multicast: false, - file: Math.random().toString() + file: './test-radata/' + words({exactly: 2}).join('-'), }) })