Skip to content

Commit 6f70859

Browse files
committed
[feat] Update the package
1 parent 7d0d2c4 commit 6f70859

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dist/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -34695,6 +34695,14 @@ exports.validateTestPaths = void 0;
3469534695
// Common helper functions used in the action
3469634696
const child_process_1 = __nccwpck_require__(2081);
3469734697
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+
*/
3469834706
if (testPaths.length === 0) {
3469934707
throw new Error('No test files found');
3470034708
}

0 commit comments

Comments
 (0)