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.
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 theyeoman-testhelper even finished writing files to disk.The
yeoman-assertalso ignores theprocess.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-testto newer version which includes the assertion running in theRunContext.