You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
🤔 I'm not following exactly what's being asked for here. Assert.file wouldn't generate any files, it just would test that they exist. Is that a typo? As in, are you asking why the tplFiles inside the generator's writing() aren't being found in tests, despite apparently being written to disk?
Also, after a git clone and npm install on that repository, I get a failure in an unrelated test:
App template
1) Contains README with app name
DIR: /private/var/folders/sr/j__6_9gn0dv557z0xf3p7y8h0000gn/T/c15583c7123c4f364b9e86d5ae6c093d48ead4eb
[ 'test' ]
✔ contains husky
1 passing (257ms)
1 failing
1) App template
Contains README with app name:
AssertionError [ERR_ASSERTION]: test-app/package.json did not match '/"name": "test-app"/'. Contained:
{
"version": "0.0.0",
"private": true,
"type": "module",
... (omitted from GH comment for brevity)
"vitest": "^1.4.0",
"vue-tsc": "^2.0.11"
}
}
+ expected - actual
-false
+true
at /Users/josh/repos/generator-vite-vuetify/node_modules/yeoman-assert/index.js:115:5
at Array.forEach (<anonymous>)
at assert.fileContent (node_modules/yeoman-assert/index.js:102:26)
at file:///Users/josh/repos/generator-vite-vuetify/__tests__/app.spec.js:25:16
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):
No .husky and .git folders are found. In the test directory, those files, are discarded? The temporary file system doesn't manage them?
The text was updated successfully, but these errors were encountered: