yeoman-assert
yeoman-assert copied to clipboard
Assert.file doesn't generate .husky files
I'm using yeoman-test and yeoman-assert in my project to generate a template for vue. I wanna install husky for the user and init it after install. My repo is here https://gitlab.com/danieletentoni/generator-vite-vuetify. In my local env, I've linkend my project and I can generate the project, with husky and init it.
In my unit tests, I'm running my generator to install husky. But when I [run(https://gitlab.com/danieletentoni/generator-vite-vuetify/-/blob/main/tests/app.spec.js?ref_type=heads#L31):
.then(function (dir) {
console.log("DIR: ", dir.cwd);
console.log(fs.readdirSync(dir.cwd));
assert.fileContent("README.md", /# test/);
assert.fileContent(".husky/pre-commit", "npm test");
});
No .husky and .git folders are found. In the test directory, those files, are discarded? The temporary file system doesn't manage them?