Showing 2 of 7 total issues
Function runTests
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const runTests = (firstFileName, secondFileName, expectedFileName, format = 'graphical') => {
describe(`with ${format} output format`, () => {
test.each(['.json', '.yml', '.ini'])(
'with extensions of %s', (i) => {
const firstFilePath = findFixture(`${firstFileName}${i}`);
Avoid too many return
statements within this function. Open
Open
return [...acc, buildNode('removed', key, dataObjVal1, null)];