Problems: auto-fix & problem panel (#541)
Test cases: - [x] create-ts-errors - [x] with auto-fix - [x] without auto-fix - [x] create-unfixable-ts-errors - [x] manually edit file & click recheck - [x] fix all - [x] delete and rename case THINGS - [x] error handling for checkProblems isn't working as expected - [x] make sure it works for both default templates (add tests) - [x] fix bad animation - [x] change file context (prompt/files) IF everything passes in Windows AND defensive try catch... then enable by default - [x] enable auto-fix by default
This commit is contained in:
@@ -4,6 +4,16 @@ import { cleanFullResponse } from "../utils/cleanFullResponse";
|
||||
// e.g. [dyad-qa=add-dep]
|
||||
// Canned responses for test prompts
|
||||
const TEST_RESPONSES: Record<string, string> = {
|
||||
"ts-error": `This will get a TypeScript error.
|
||||
|
||||
<dyad-write path="src/bad-file.ts" description="This will get a TypeScript error.">
|
||||
import NonExistentClass from 'non-existent-class';
|
||||
|
||||
const x = new Object();
|
||||
x.nonExistentMethod();
|
||||
</dyad-write>
|
||||
|
||||
EOM`,
|
||||
"add-dep": `I'll add that dependency for you.
|
||||
|
||||
<dyad-add-dependency packages="deno"></dyad-add-dependency>
|
||||
|
||||
Reference in New Issue
Block a user