javascript/selenium-webdriver/lib/javascript/selenium-webdriver/test/bazel build //javascript/selenium-webdriver/...See javascript/selenium-webdriver/TESTING.md
const logging = require('./logging') const log_ = logging.getLogger('selenium.webdriver.mymodule') log_.warning('actionable: something needs attention') log_.info('useful: driver started successfully') log_.finer('diagnostic: request details for debugging')
Log a warning directing users to the alternative:
log_.warning('oldMethod is deprecated, use newMethod instead')
Use JSDoc for public APIs:
/** * Brief description. * * @param {Type} name description * @return {Type} description * @throws {ErrorType} when condition */
JavaScript files are formatted with Prettier. Run ./go format after changes; it will auto-fix all style issues.
Active Prettier config (.prettierrc):
printWidth: 120 characterssingleQuote: true (use ' not ")semi: false (no semicolons)trailingComma: “all” (trailing commas everywhere ES5+ allows)endOfLine: “lf” (Unix line endings only)