Coder Social home page Coder Social logo

Sort + append? about jest-html-reporter HOT 1 OPEN

deser avatar deser commented on June 20, 2024
Sort + append?

from jest-html-reporter.

Comments (1)

Hargne avatar Hargne commented on June 20, 2024

Hi,
That could potentially be tricky to solve as the module only looks at the current result and simply appends it. The file it appends to can be any document of any sort, so there is no way for it to know if it follows any convention or not.

In order to make this possible, we would have to build or use some function that would be able to parse, extract and rearrange HTML elements, which seems like a daunting task as of now!

Another solution would be to redesign reporter in a way that we both extract/append to a (i.e) JSON with the test results that in the next step would be used to generate a HTML report from scratch each time. In this case we would have greater control over the document and could rearrange in whatever fashion we'd want.

from jest-html-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.