@@ -3,8 +3,6 @@ import { describe, it, expect, beforeEach, vi } from "vitest"
33import { GhostStrategy } from "../GhostStrategy"
44import { GhostSuggestionContext } from "../types"
55import { PromptStrategyManager } from "../PromptStrategyManager"
6- import { UseCaseType } from "../types/PromptStrategy"
7- import { skip } from "node:test"
86
97describe ( "GhostStrategy" , ( ) => {
108 let strategy : GhostStrategy
@@ -53,37 +51,6 @@ describe("GhostStrategy", () => {
5351 expect ( systemPrompt ) . toContain ( "Execute User's Explicit Request" )
5452 expect ( userPrompt ) . toContain ( "Add a function to calculate sum" )
5553 } )
56-
57- skip ( "should select ErrorFixStrategy when diagnostics are present" , ( ) => {
58- const mockDocument = {
59- languageId : "typescript" ,
60- getText : ( ) => "const x = 1" ,
61- lineAt : ( line : number ) => ( { text : "const x = 1" } ) ,
62- uri : { toString : ( ) => "file:///test.ts" } ,
63- offsetAt : ( position : vscode . Position ) => 11 ,
64- } as vscode . TextDocument
65-
66- const mockRange = {
67- start : { line : 0 , character : 11 } as vscode . Position ,
68- end : { line : 0 , character : 11 } as vscode . Position ,
69- } as vscode . Range
70-
71- const context : GhostSuggestionContext = {
72- document : mockDocument ,
73- diagnostics : [
74- {
75- severity : vscode . DiagnosticSeverity . Error ,
76- message : "Missing semicolon" ,
77- range : mockRange ,
78- } as vscode . Diagnostic ,
79- ] ,
80- }
81-
82- const { systemPrompt } = strategy . getPrompts ( context )
83-
84- // ErrorFixStrategy should be selected
85- expect ( systemPrompt ) . toContain ( "Fix Compilation Errors and Warnings" )
86- } )
8754 } )
8855
8956 describe ( "Integration" , ( ) => {
@@ -117,20 +84,6 @@ describe("GhostStrategy", () => {
11784 manager = new PromptStrategyManager ( )
11885 } )
11986
120- it ( "should have all 7 strategies registered" , ( ) => {
121- const strategies = manager . getStrategies ( )
122- expect ( strategies ) . toHaveLength ( 7 )
123-
124- const strategyNames = strategies . map ( ( s ) => s . name )
125- expect ( strategyNames ) . toContain ( "User Request" )
126- expect ( strategyNames ) . toContain ( "Error Fix" )
127- expect ( strategyNames ) . toContain ( "Selection Refactor" )
128- expect ( strategyNames ) . toContain ( "Comment Driven" )
129- expect ( strategyNames ) . toContain ( "New Line Completion" )
130- expect ( strategyNames ) . toContain ( "Inline Completion" )
131- expect ( strategyNames ) . toContain ( "Auto Trigger" )
132- } )
133-
13487 it ( "should select appropriate strategy based on context" , ( ) => {
13588 const mockDocument = {
13689 languageId : "typescript" ,
0 commit comments