We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d0d2c4 commit 6f70859Copy full SHA for 6f70859
dist/index.js
@@ -34695,6 +34695,14 @@ exports.validateTestPaths = void 0;
34695
// Common helper functions used in the action
34696
const child_process_1 = __nccwpck_require__(2081);
34697
async function validateTestPaths(testPaths) {
34698
+ /**
34699
+ * Validates the test paths by running `k6 inspect --execution-requirements` on each test file.
34700
+ * A test path is considered valid if the command returns an exit code of 0.
34701
+ *
34702
+ * @export
34703
+ * @param {string[]} testPaths - List of test paths to validate
34704
+ * @return {Promise<string[]>} - List of valid test paths
34705
+ */
34706
if (testPaths.length === 0) {
34707
throw new Error('No test files found');
34708
}
0 commit comments