Skip to content

Commit

Permalink
barrelify: Remove rogue console.log, fix test for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLey committed Nov 1, 2024
1 parent a7248af commit d020dd1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-horses-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barrelify": patch
---

Remove rogue console.log, fix test for ci
2 changes: 0 additions & 2 deletions apps/barrelify/src/lib/barrel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ export class Barrel {
const barrel = Barrel.generateBarrelFile({ files, types: existingTypes });

if (barrel !== data) {
// eslint-disable-next-line no-console
console.log({ filePath, barrel, data, files, existingTypes });
if (!dryRun) {
await this.#writeFile(filePath, barrel, 'utf8');
}
Expand Down
2 changes: 1 addition & 1 deletion apps/barrelify/src/tests/integration/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ suite('cli', () => {
suite('commands', () => {
suite('default/barrel', () => {
test('success', async () => {
const result = await execAsync('./bin.mjs --dry-run --ignore=foo');
const result = await execAsync('./bin.mjs --ci=false --dry-run --ignore=foo');

expect(result.stdout).to.contain('');
expect(result.stderr).to.equal('');
Expand Down

0 comments on commit d020dd1

Please sign in to comment.