From 709d428b4cb94e8eca53b6f32e0f8b1be5a323b9 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Wed, 2 Jun 2021 16:04:59 -0500 Subject: include more data about skills (#51) --- test-data-generator/index.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'test-data-generator') diff --git a/test-data-generator/index.ts b/test-data-generator/index.ts index 408f76a..b0b3ba6 100644 --- a/test-data-generator/index.ts +++ b/test-data-generator/index.ts @@ -20,7 +20,7 @@ const playerUuids = [ async function writeTestData(requestPath: string, name: string, contents: any) { const dir = path.join(__dirname, '..', 'test', 'data', requestPath) - await fs.mkdir(dir, { recursive: true }) + await fs.mkdir(path.dirname(path.join(dir, `${name}.json`)), { recursive: true }) await fs.writeFile(path.join(dir, `${name}.json`), JSON.stringify(contents, null, 2)) } @@ -35,7 +35,16 @@ async function addResponse(requestPath: string, args: { [ key: string ]: string async function addConstants() { - const constantNames = ['collections', 'minions', 'skills', 'slayers', 'stats', 'zones'] + const constantNames = [ + 'collections', + 'minions', + 'skills', + 'slayers', + 'stats', + 'zones', + 'manual/skill_xp', + 'manual/skill_xp_easier', + ] for (const constantName of constantNames) { const constantData = await constants.fetchJSONConstant(constantName + '.json') await writeTestData('constants', constantName, constantData) -- cgit