detox-copilot
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -11,7 +11,6 @@ "use strict"; | ||
}, | ||
perform: async (steps) => { | ||
perform: async (...steps) => { | ||
const copilotInstance = Copilot_1.Copilot.getInstance(); | ||
const intents = Array.isArray(steps) ? steps : [steps]; | ||
const results = new Array(); | ||
for (const intent of intents) { | ||
for (const intent of steps) { | ||
results.push(await copilotInstance.performStep(intent)); | ||
@@ -18,0 +17,0 @@ } |
@@ -24,8 +24,5 @@ /** | ||
* @example The welcome message text should be "Hello, world!" | ||
* @example [ | ||
* 'Tap on the login button', | ||
* 'A login form should be visible', | ||
* ] | ||
* @example 'Tap on the login button', 'A login form should be visible' | ||
*/ | ||
perform: (steps: string | string[]) => Promise<any | any[]>; | ||
perform: (...steps: string[]) => Promise<any | any[]>; | ||
} | ||
@@ -32,0 +29,0 @@ /** |
{ | ||
"name": "detox-copilot", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A flexible plugin that drives your tests with human-written commands, enhanced by the power of large language models (LLMs)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55745
1153