Skip to content

Conversation

@jfeingold35
Copy link
Contributor

No description provided.

trim_trailing_whitespace = true
insert_final_newline = true

[*.ts]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticing that some of the files created by people other than me are space-indented, so I'm adding a thing to the .editorconfig to hopefully keep it all consistent in the future.

Comment on lines +27 to +42
it.each([
{ext: 'json', format: OutputFormat.JSON},
{ext: 'csv', format: OutputFormat.CSV}
])('Writes to a $ext file path', ({ext, format}) => {
const outfilePath = path.join('the', 'results', 'path', `file.${ext}`);
const expectations = {
file: outfilePath,
contents: `Rules formatted as ${format}`
};
const rulesWriter = new RulesFileWriter(expectations.file);
const stubbedSelection = new Stub.StubEmptyRuleSelection();
rulesWriter.write(stubbedSelection);

expect(writeFileSpy).toHaveBeenCalled();
expect(writeFileInvocations).toEqual([expectations]);
});
});
expect(writeFileSpy).toHaveBeenCalled();
expect(writeFileInvocations).toEqual([expectations]);
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this test to use it.each(), and that's the only functional change. Everything else was just whitespace to make it tab-indented.

Copy link
Contributor

@stephen-carter-at-sf stephen-carter-at-sf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to update the rules command so that the output-format has multiple: true so we can supply multiple?

Copy link
Contributor

@jshackell-sfdc jshackell-sfdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jfeingold35 jfeingold35 merged commit 0ed0a9e into dev Aug 14, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants