Skip to content

v0.16.0

Compare
Choose a tag to compare
@SBoudrias SBoudrias released this 08 Jan 20:22
· 1098 commits to main since this release

Generators test utilities

  • All previous yeoman.test.assertX method are available as yeoman.assert.x.
  • Fix bug offucring with test.testDirectory on Windows when the test directory was the CWD.
  • Cleanup and new assertions methods (thanks to @smackesey on PR #436)
    • New: assertFileContent (check a file exist and its content match a regex)
    • New: assertNoFileContent (check a file content doesn't match a regex)
    • New: assertNoFile (check a file doesn't exist)
    • Renamed: before -> setUpTestDirectory
    • Deprecated: assertFile with regex to match content. Use assertFileContent instead.
    • We added deprecation log notice for now. But the methods/signature will be removed in the 1.0 Generator system.

Environement

  • Fix bugs with path resolution. Now only the CWD directory is walked up, and we fixed bug with Windows paths that could wind up in an infinite loop.

Misc

  • Start working on better JSDoc markup to generate automatic API documentation.