-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into subworkflowInputs_f…
…allbackToPassthrough
- Loading branch information
Showing
548 changed files
with
9,504 additions
and
2,575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Chromatic | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
pull_request_review: | ||
types: [submitted] | ||
|
@@ -70,7 +72,7 @@ jobs: | |
exitZeroOnChanges: false | ||
|
||
- name: Success comment | ||
if: steps.chromatic_tests.outcome == 'success' | ||
if: steps.chromatic_tests.outcome == 'success' && github.ref != 'refs/heads/master' | ||
uses: peter-evans/[email protected] | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
|
@@ -80,7 +82,7 @@ jobs: | |
:white_check_mark: No visual regressions found. | ||
- name: Fail comment | ||
if: steps.chromatic_tests.outcome != 'success' | ||
if: steps.chromatic_tests.outcome != 'success' && github.ref != 'refs/heads/master' | ||
uses: peter-evans/[email protected] | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,6 @@ jobs: | |
run: pnpm install --frozen-lockfile | ||
|
||
- name: Setup build cache | ||
if: inputs.collectCoverage != true | ||
uses: rharkor/[email protected] | ||
|
||
- name: Build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,6 @@ | |
"dependencies": { | ||
"xss": "catalog:", | ||
"zod": "catalog:", | ||
"zod-class": "0.0.15" | ||
"zod-class": "0.0.16" | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/@n8n/api-types/src/dto/ai/__tests__/ai-apply-suggestion-request.dto.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { AiApplySuggestionRequestDto } from '../ai-apply-suggestion-request.dto'; | ||
|
||
describe('AiApplySuggestionRequestDto', () => { | ||
it('should validate a valid suggestion application request', () => { | ||
const validRequest = { | ||
sessionId: 'session-123', | ||
suggestionId: 'suggestion-456', | ||
}; | ||
|
||
const result = AiApplySuggestionRequestDto.safeParse(validRequest); | ||
|
||
expect(result.success).toBe(true); | ||
}); | ||
|
||
it('should fail if sessionId is missing', () => { | ||
const invalidRequest = { | ||
suggestionId: 'suggestion-456', | ||
}; | ||
|
||
const result = AiApplySuggestionRequestDto.safeParse(invalidRequest); | ||
|
||
expect(result.success).toBe(false); | ||
expect(result.error?.issues[0].path).toEqual(['sessionId']); | ||
}); | ||
|
||
it('should fail if suggestionId is missing', () => { | ||
const invalidRequest = { | ||
sessionId: 'session-123', | ||
}; | ||
|
||
const result = AiApplySuggestionRequestDto.safeParse(invalidRequest); | ||
|
||
expect(result.success).toBe(false); | ||
expect(result.error?.issues[0].path).toEqual(['suggestionId']); | ||
}); | ||
}); |
Oops, something went wrong.