pythagora icon indicating copy to clipboard operation
pythagora copied to clipboard

Gerneated Tests are empty when run on a fresh project.

Open bogeeee opened this issue 1 year ago • 2 comments
trafficstars

When i delete the pythagora_tests folder first and then generate the tests, it always generates me an almost empty unit-test file with only the lines


` ` ` ` javascript

in it. After i leave the existing folder and just delete the unit-test-file, it will run fine again.

bogeeee avatar Nov 28 '23 23:11 bogeeee

Typo in the title. Mus say: "Generated tests"

bogeeee avatar Nov 28 '23 23:11 bogeeee

Update: Now i also get it, when the pythagora_tests folder already exists, while expanding tests with npm run clean && npx pythagora --expand-unit-tests --force --path matchesValue.test.ts

The result is then:

Content of my handwritten tests

//Expanded tests using Pythagora:
```javascript

Seems a bit non-deterministic here.

bogeeee avatar Nov 29 '23 15:11 bogeeee