Hardocs / desktop-app

Hardocs desktop app presenting current docs editing functionalities.
GNU General Public License v2.0
3 stars 2 forks source link

Refactor mocks so that tests can be reproduced by anyone #100

Closed jurra closed 3 years ago

jurra commented 3 years ago

Describe the bug The test is not finding divine.html. I am assuming this is due to the fact that you were creating manually a hardocs project. To Reproduce Steps to reproduce the behavior:

  1. Remove the test-projectfolder
  2. Run yarn test:unit

Expected behavior The test should automatically create this project with all the files and mocks required required. If the test-project is a mock then it should live inside the test folder as a mock. Thats the most straightforward way I can think of.

Screenshots image

jurra commented 3 years ago

@DNature this is happening because the folder that is supposed to be used in the test is being ignored. Please add this test folder to the mocks folder inside the test.