opencaesar / oml-vision

A VS Code extension providing UI viewpoints for OML models
Other
4 stars 2 forks source link

Create unit tests for view directory #76

Open pogi7 opened 4 months ago

pogi7 commented 4 months ago

Checklist before submitting a feature request

Is your feature request related to a problem? If yes, describe the problem

I am annoyed that there are no unit tests for the code in the view directory.

Describe the desired feature

I want there to be a unit test for every exported function or functional component in the view directory. This will allow for high code quality as these tests can be used to verify that the function or functional component behaves as expected while under test.

Additional context

There are currently no tests for the view directory. Possible frameworks to investigate are:

  1. React Testing Library (the frontend is built on top of React)
  2. VSCode Extension Tester (the frontend comes is wrapped inside of a VSCode extension)
aematei commented 3 months ago

We should probably test the view/src/components/Diagram/diagramUtils.ts test suite.