emqx / MQTTX

A Powerful and All-in-One MQTT 5.0 client toolbox for Desktop, CLI and WebSocket.
https://mqttx.app
Apache License 2.0
3.93k stars 449 forks source link

feat(cli): add tests for saving and loading options with custom YAML path #1812

Closed Red-Asuka closed 1 week ago

Red-Asuka commented 1 week ago

This pull request includes several changes to the cli/src/__tests__/utils/options.test.ts file to add support for handling YAML file paths in addition to JSON file paths. The most important changes include the addition of a new test file path, updating cleanup logic, and adding new test cases for saving and loading options with a custom YAML path.

Add support for YAML file paths:

New test cases for YAML file paths: