Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gerneated Tests are empty when run on a fresh project. #67

Open
bogeeee opened this issue Nov 28, 2023 · 2 comments
Open

Gerneated Tests are empty when run on a fresh project. #67

bogeeee opened this issue Nov 28, 2023 · 2 comments

Comments

@bogeeee
Copy link

bogeeee commented Nov 28, 2023

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
Copy link
Author

bogeeee commented Nov 28, 2023

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

@bogeeee
Copy link
Author

bogeeee commented Nov 29, 2023

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.

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

No branches or pull requests

1 participant