Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const fs = require('fs');
const path = require('path');

const { calculatePrRework, calculateReworkSummary } = require('./lib/rework');
const { calculatePrRework, calculateReworkSummary } = require('./lib/rework.cjs');

const GREEN = '\x1b[32m';
const RED = '\x1b[31m';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/rework-rate.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { execFileSync } = require('child_process');
const CLI = path.join(__dirname, '..', 'index.cjs');

// Import rework calculation functions from the pure module (no CLI side effects)
const { calculatePrRework, calculateReworkSummary } = require(path.join(__dirname, '..', 'lib', 'rework.js'));
const { calculatePrRework, calculateReworkSummary } = require(path.join(__dirname, '..', 'lib', 'rework.cjs'));

describe('calculatePrRework', () => {
it('should return zero rework for PR with no reviews', () => {
Expand Down
Loading