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

Tests fail on Windows platform #297

Open
jozefizso opened this issue Dec 29, 2024 · 0 comments
Open

Tests fail on Windows platform #297

jozefizso opened this issue Dec 29, 2024 · 0 comments

Comments

@jozefizso
Copy link

Tests will fail on Windows platform because they are not using the in-memory filesystem, but are writing files to temporary directory unique for the running test context.

The writes are not synced so the assertions in it() will execute before the yeoman-test helper even finished writing files to disk.

The yeoman-assert also ignores the process.cwd() which points to the unique test context folder with generated files and reads files from the repository root. This causes tests which are asserting file content to fail.

This can be fixed by upgrading the yeoman-test to newer version which includes the assertion running in the RunContext.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants