Skip to content

Conversation

@QuentinNativel
Copy link
Owner

No description provided.

@QuentinNativel QuentinNativel marked this pull request as draft July 7, 2023 15:45

# Context

I work on an open source project: [sls-mentor](https://www.sls-mentor.dev/), that audits an aws stack and give advices on the best practices to configure serverless resources on AWS.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
I work on an open source project: [sls-mentor](https://www.sls-mentor.dev/), that audits an aws stack and give advices on the best practices to configure serverless resources on AWS.
I am working...


- Report generation is done in a CLI ⌨️
- The report is pretty 💄
- As a fullstack developper, I wanted to use a tool that I know well to generate the report: [React](https://react.dev/)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a solution already, not a requirement.

Suggested change
- As a fullstack developper, I wanted to use a tool that I know well to generate the report: [React](https://react.dev/)
The report can be displayed in a browser


![](./assets/jest-html-reporter.png)

And guess what ? It is written in react ! 🚀
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
And guess what ? It is written in react ! 🚀
And guess what? It is written in React! 🚀


It generates a dist folder with an index.html file. But if you try to open it in your browser, you will see a blank page.

If you open the index.html in an editor, you will notice it is almost empty, it just an empty div and some scripts to js files.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you open the index.html in an editor, you will notice it is almost empty, it just an empty div and some scripts to js files.
If you open the index.html in an editor, you will notice it is almost empty, it's just an empty div and some scripts to js files.


# Found a typo?

If you've found a typo, a sentence that could be improved or anything else that should be updated on this blog post, you can access it through a git repository and make a pull request. Instead of posting a comment, please go directly to <REPO URL> and open a new pull request with your changes.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to fill in REPO_URL

}
```

The placeholder `<<<RESULTS_PLACEHOLDER>>>` will be replaced by the result of the analysis.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be interesting to explain how this is done. In other words, how the report generator integrates with the tool that computes the score.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants