Skip to content

Use debug module for logging instead of console.log #314

Closed
@alexkrolick

Description

@alexkrolick

Describe the feature you'd like:

DTL currently provides several debug methods that pretty print the DOM

What if instead of, or in addition to, these methods we added a debug scope using the debug npm module?

https://www.npmjs.com/package/debug

Before:

  • write test
  • get weird output
  • add debug log calls to test

After:

  • DEBUG=dom:query:* yarn test (on changed files or with a specific test regex)

Suggested implementation:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions