You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -137,36 +136,25 @@ function saveExportJson(exportsMetadata, test, testName) {
137
136
if(testId){
138
137
if(testExists(exportsMetadata,testId))logAndExit(`Test with id ${testId} already generated, you can find it here: ${`./${EXPORTED_TESTS_DIR}/${exportsMetadata[testId].testName}`}. If you want to generate it again delete old one first.`);
139
138
140
-
lettest=generatedTests.find(t=>t.id===testId);
141
-
if(!test)thrownewError(`Test with id ${testId} not found`);
console.log(`Test with id ${test.id} already generated, you can find it here: ${`./${EXPORTED_TESTS_DIR}/${exportsMetadata[test.id].testName}`}.`);
145
+
for(letoriginalTestofgeneratedTests){
146
+
if(originalTest.method==='OPTIONS')continue;
147
+
if(testExists(exportsMetadata,originalTest.id)){
148
+
console.log(`Test with id ${originalTest.id} already generated, you can find it here: ${`./${EXPORTED_TESTS_DIR}/${exportsMetadata[originalTest.id].testName}`}.`);
151
149
continue;
152
150
}
153
151
154
-
lettestData=convertOldTestForGPT(test);
155
-
lettokens=getTokensInMessages([
156
-
{"role": "system","content": "You are a QA engineer and your main goal is to find ways to break the application you're testing. You are proficient in writing automated integration tests for Node.js API servers.\n"+
157
-
"When you respond, you don't say anything except the code - no formatting, no explanation - only code.\n"},
0 commit comments