Skip to content

Create Unit tests #13

@Chrizpy

Description

@Chrizpy

When I started out this project, I was just eager to try out Deno Fresh1 and TypeScript2.

I did not really understand how to test web projects either back then. But after some with React3 and Jest4, I think I have an idea now on how I would go about structuring up these tests.

Another thing, that should maybe be its own issue, is that I should maybe have a more clearer structure on how my components are being used. Right now the Page component is like a "done framework" for my app. The only thing needed is the children props that are going to be my text for each page. I have some styling for the Button component and such that should maybe be done on a higher level, as in when to hide it and such.

Had I had tests from the start, maybe the things above may have been avoided. :)

Footnotes

  1. https://fresh.deno.dev/

  2. https://www.typescriptlang.org/

  3. https://react.dev/

  4. https://jestjs.io/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions