diff --git a/src/dws/build.ts b/src/dws/build.ts index 66c3696..8a39c47 100644 --- a/src/dws/build.ts +++ b/src/dws/build.ts @@ -88,6 +88,10 @@ async function processActionFileReferences(action: Action): Promise { + it('should parse applyInstantJson actions', () => { + const result = BuildActionSchema.safeParse({ type: 'applyInstantJson', file: '/test.json' }) + + expect(result.success).toBe(true) + }) + + it('should reject applyInstantJson actions without a file', () => { + const result = BuildActionSchema.safeParse({ type: 'applyInstantJson' }) + + expect(result.success).toBe(false) + }) +}) + describe('API Functions', () => { const originalEnv = process.env