parent
7a097bdcbf
commit
b185997ce8
6 changed files with 14 additions and 11 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -166,4 +166,6 @@ Icon?
|
|||
.continue
|
||||
|
||||
# Sandbox env default file
|
||||
extensions/vscode/manual-testing-sandbox/example.ts
|
||||
extensions/vscode/manual-testing-sandbox/example.ts
|
||||
|
||||
.prompts/
|
||||
|
|
@ -5,12 +5,12 @@ You will be acting as a senior software engineer performing a code review for a
|
|||
You will follow the guidelines for giving a great code review outlined below:
|
||||
{{{ url "https://google.github.io/eng-practices/review/reviewer/looking-for.html" }}}
|
||||
|
||||
---
|
||||
===
|
||||
|
||||
Here is the proposed code changes you will be reviewing:
|
||||
{{{ diff }}}
|
||||
|
||||
---
|
||||
===
|
||||
|
||||
|
||||
Do not include a greeting. Immediately begin reviewing the changes.
|
||||
|
|
@ -23,7 +23,7 @@ Do not add any other text after the suggestion.
|
|||
If you have no feedback on a file, do not add a comment for that file.
|
||||
Lastly, provide a one to two summary of your feedback at the end.
|
||||
|
||||
Here is some examples.
|
||||
Here are some examples.
|
||||
|
||||
<example>
|
||||
### filename.js
|
||||
|
|
@ -79,10 +79,8 @@ project structure and code cleanliness.
|
|||
|
||||
|
||||
Here is the additional input from the code author:
|
||||
|
||||
<input>
|
||||
{{ input }}
|
||||
</input>
|
||||
|
||||
===
|
||||
|
||||
Think through your feedback step by step before replying.
|
||||
|
|
@ -5,7 +5,8 @@ You will be acting as a senior software engineer performing a code review for a
|
|||
As part of your code review, you will be identifying "code smells". Here is an overview of what a code smell is:
|
||||
{{{ url "https://martinfowler.com/bliki/CodeSmell.html"}}}
|
||||
|
||||
---
|
||||
===
|
||||
|
||||
|
||||
You will provide the 5 most important pieces of feedback on the code smells you have identified.
|
||||
For each piece of feedback, you will provide a short explanation of the issue and suggest a solution.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ You will be acting as a senior software engineer helping a colleague document th
|
|||
You will follow the guidelines for writing great code comments:
|
||||
{{{ url "https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/" }}}
|
||||
|
||||
---
|
||||
===
|
||||
|
||||
Using this information, write a comment for the following code:
|
||||
{{{ input }}}
|
||||
|
|
@ -10,5 +10,7 @@ Here is the documentation for Jest that you will use to help
|
|||
the user troubleshoot the error:
|
||||
{{{ docs "https://jestjs.io/docs/getting-started" }}}
|
||||
|
||||
===
|
||||
|
||||
Now, let's analyze the error message and the documentation to find a solution.
|
||||
If there is a valid solution, explain it and provide working code.
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ You will be acting as a senior software engineer helping a colleague to create u
|
|||
You will follow the guidelines to understand what unit testing is, and how to generate useful unit tests:
|
||||
{{{ url "https://aws.amazon.com/what-is/unit-testing/"}}}
|
||||
|
||||
---
|
||||
===
|
||||
|
||||
To better understand how we perform unit testing for this codebase, use the following examples:
|
||||
{{{ codebase }}}
|
||||
|
||||
---
|
||||
===
|
||||
|
||||
Lastly, here is the additional input from the user on what should be tested, how to write the tests, etc.
|
||||
{{{ input }}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue