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

Assert.file doesn't generate .husky files #36

Open
Daniele-Tentoni opened this issue May 10, 2024 · 0 comments
Open

Assert.file doesn't generate .husky files #36

Daniele-Tentoni opened this issue May 10, 2024 · 0 comments

Comments

@Daniele-Tentoni
Copy link

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?

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