Source: factory.web/WebTest.py
JavaScript testing and linting manager for Axion framework.
Attributes:
config (dict): Configuration loaded from WebTest.yaml
npm_initialized (bool): Whether npm dependencies are installed
...
| Method | Signature | Description |
|---|---|---|
| load_config | load_config() |
Load test configuration from WebTest.yaml |
| check_node_installed | check_node_installed() -> bool |
Check if Node.js and npm are installed |
| check_npm_initialized | check_npm_initialized() -> bool |
Check if npm dependencies are installed |
| install_dependencies | install_dependencies() |
Install or update npm dependencies |
| run_linter | run_linter(fix = False) |
Run ESLint on configured JavaScript files |
| check_file | check_file(file_path: str) -> bool |
Check a specific JavaScript file |
| format_files | format_files() |
Format JavaScript files using Prettier |
| show_summary | show_summary() |
Display summary of test configuration |