- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
795 B
TypeScript
27 lines
795 B
TypeScript
import {
|
|
FlowActionType,
|
|
GenericStepOutput,
|
|
StepOutputStatus,
|
|
} from '@activepieces/shared'
|
|
import { loggingUtils } from '../../src/lib/helper/logging-utils'
|
|
|
|
describe('Logging Utils', () => {
|
|
it('Should not truncate whole step if its log size exceeds limit', async () => {
|
|
const steps = {
|
|
mockStep: GenericStepOutput.create({
|
|
type: FlowActionType.CODE,
|
|
status: StepOutputStatus.SUCCEEDED,
|
|
input: {
|
|
a: 'a'.repeat(1024 * 1024 * 12),
|
|
},
|
|
}),
|
|
}
|
|
|
|
// act
|
|
const result = await loggingUtils.trimExecution(steps)
|
|
|
|
// assert
|
|
expect((result.mockStep.input as Record<string, string>).a.length).toBeLessThan(1024 * 1024 * 12)
|
|
})
|
|
})
|