From 37a711eb6a752b14420c9855b4c5cbe0c791ff42 Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Tue, 9 Jun 2020 11:14:18 +1200 Subject: [PATCH] Improve fixture test output (#2266) --- packages/insomnia-importers/src/__tests__/fixtures.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/insomnia-importers/src/__tests__/fixtures.test.js b/packages/insomnia-importers/src/__tests__/fixtures.test.js index 1899c8fd4..77a33eec2 100755 --- a/packages/insomnia-importers/src/__tests__/fixtures.test.js +++ b/packages/insomnia-importers/src/__tests__/fixtures.test.js @@ -8,7 +8,7 @@ const fixturesPath = path.join(__dirname, './fixtures'); const fixtures = fs.readdirSync(fixturesPath); describe('Fixtures', () => { - for (const name of fixtures) { + describe.each(fixtures)('Import %s', name => { const dir = path.join(fixturesPath, `./${name}`); const inputs = fs.readdirSync(dir).filter(name => !!name.match(/^(.+)-?input\.[^.]+$/)); @@ -20,7 +20,7 @@ describe('Fixtures', () => { continue; } - it(`Import ${name} ${input}`, async () => { + it(input, async () => { expect.assertions(5); expect(typeof input).toBe('string'); expect(typeof output).toBe('string'); @@ -49,5 +49,5 @@ describe('Fixtures', () => { } }); } - } + }); });