Skip to content
Merged
Changes from 1 commit
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
7 changes: 5 additions & 2 deletions apps/sim/blocks/blocks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,13 @@ describe.concurrent('Blocks Module', () => {

describe('Input/Output Validation', () => {
it('should have valid input types', () => {
const validTypes = ['string', 'number', 'boolean', 'json', 'array']
const validTypes = ['string', 'number', 'boolean', 'json', 'array', 'file']
const blocks = getAllBlocks()
for (const block of blocks) {
for (const [_, inputConfig] of Object.entries(block.inputs)) {
for (const [_, inputConfig] of Object.entries(block.inputs) as [
string,
{ type: string },
][]) {
Comment thread
Sg312 marked this conversation as resolved.
Outdated
expect(validTypes).toContain(inputConfig.type)
}
}
Expand Down
Loading