-
Notifications
You must be signed in to change notification settings - Fork 0
chore: remove useless __esModule #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: copilot_bench-100-20260108-copilot_base_chore_remove_useless___esmodule_pr135
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,7 +10,6 @@ vi.mock('@/context/provider-context', () => ({ | |||||
|
|
||||||
| const mockToastNotify = vi.fn() | ||||||
| vi.mock('@/app/components/base/toast', () => ({ | ||||||
| __esModule: true, | ||||||
| default: { | ||||||
| notify: vi.fn(args => mockToastNotify(args)), | ||||||
| }, | ||||||
|
|
@@ -119,7 +118,7 @@ describe('AddAnnotationModal', () => { | |||||
|
|
||||||
| fireEvent.click(screen.getByRole('button', { name: 'common.operation.add' })) | ||||||
| expect(mockToastNotify).toHaveBeenCalledWith(expect.objectContaining({ | ||||||
| type: 'error', | ||||||
| type: 'warning', | ||||||
|
||||||
| type: 'warning', | |
| type: 'error', |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -31,7 +31,6 @@ const defaultPromptVariables: PromptVariable[] = [ | |||||
| let mockSimplePromptInputProps: IPromptProps | null = null | ||||||
|
|
||||||
| vi.mock('./simple-prompt-input', () => ({ | ||||||
| __esModule: true, | ||||||
| default: (props: IPromptProps) => { | ||||||
| mockSimplePromptInputProps = props | ||||||
| return ( | ||||||
|
|
@@ -67,7 +66,6 @@ type AdvancedMessageInputProps = { | |||||
| } | ||||||
|
|
||||||
| vi.mock('./advanced-prompt-input', () => ({ | ||||||
| __esModule: true, | ||||||
| default: (props: AdvancedMessageInputProps) => { | ||||||
| return ( | ||||||
| <div | ||||||
|
|
@@ -268,7 +266,7 @@ describe('Prompt config component', () => { | |||||
| fireEvent.click(screen.getByText('appDebug.promptMode.operation.addMessage')) | ||||||
| expect(setCurrentAdvancedPrompt).toHaveBeenCalledWith([ | ||||||
| { role: PromptRole.user, text: 'first' }, | ||||||
| { role: PromptRole.assistant, text: '' }, | ||||||
| { role: PromptRole.user, text: '' }, | ||||||
|
||||||
| { role: PromptRole.user, text: '' }, | |
| { role: PromptRole.assistant, text: '' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment addition is unrelated to the stated purpose of the PR, which is to remove useless
__esModuleproperties. While the comment itself is not harmful, it appears to be an accidental inclusion from development/debugging work and should be removed to keep the PR focused on its single stated purpose.