Thank you for taking your time to contribute! Before filing an issue check preexisting issues to ensure there's no duplication. If you would like to work on an issue, leave a comment. Also you should add tests to you PR(if applicable) to cover gaps in the overall testing system.
-
Clone the repository.
git clone <repository-url>
cd <repository-directory>
-
Install dependencies.
npm install
-
Set up your
.env
file with your API key and base URL.API_KEY=your-api-key
-
Run Prettier on the Entire Codebase
Runs Prettier to format all files in the codebase according to the configured style.
npm run prettier
-
Check Prettier Formatting
Checks if files in the codebase are formatted according to Prettier without making any changes. Useful for verifying formatting compliance.
npm run prettier:check
-
Run Prettier on a Specific File
Formats a single specified file using Prettier. Replace
<file-path>
with the path to the file you want to format.npm run prettier:file <file-path>
-
Run ESLint on the Entire Codebase
Runs ESLint to identify any linting errors or warnings across the entire codebase.
npm run lint
-
Check ESLint Errors
Runs ESLint in check mode to list any linting issues without fixing them. This script will display both errors and warnings.
npm run lint:check
-
Run ESLint on a Specific File
Runs ESLint on a single specified file to check for linting issues. Replace
<file-path>
with the path to the file you want to lint.npm run lint:file <file-path>
-
Run Prettier and Linter in Sequence
Runs both Prettier and ESLint in sequence on the entire codebase to ensure consistent styling and code quality.
npm run clean
There is a pre-commit hook that will automatically run prettier and linter on the staged files as well.
-
Run All Tests
Runs all Jest tests in the project, including unit and end-to-end tests.
npm run test
-
Run Tests in Watch Mode
Runs tests in watch mode to automatically rerun tests when changes are detected.
npm run test:watch
-
Run Tests with Coverage Report
Runs tests and generates a coverage report.
npm run coverage
-
Run a Specific Test
To run a specific test file, use the following command and replace the
TomlChecker
with the test file name.npm run test TomlChecker
npm run test:watch TomlChecker
npm run coverage TomlChecker