Generator-jhipster: Tests next to the files they are testing in Vue

Created on 2 Dec 2020  路  3Comments  路  Source: jhipster/generator-jhipster

I open this issue according to https://github.com/jhipster/generator-jhipster/issues/13125#issuecomment-736645438.

In Angular part were tests moved next to the files they are testing after https://github.com/jhipster/generator-jhipster/issues/13125#issuecomment-735789694 and https://github.com/jhipster/generator-jhipster/issues/13125#issuecomment-735793814

In https://groups.google.com/g/jhipster-dev/c/wq6pe4VLPlE general opinion was that 3 front end frameworks should be in sync in tests location.

So should we move tests next to the files they are testing also in Vue part?

area needs-discussion vue

Most helpful comment

I just tried vue-cli and the tests are in a specific folder:

* src
* tests
  * e2e (cypress)
  * unit (jest)

So I'd prefer to keep like this today.

All 3 comments

I just tried vue-cli and the tests are in a specific folder:

* src
* tests
  * e2e (cypress)
  * unit (jest)

So I'd prefer to keep like this today.

cc @sahbi-ktifa @hdurix @atomfrede @nonomoho @Falydoor : what do you think ? Your opinions are important here

Without your comment I would have said put it next to the file/component because that's what we do usually or inside a _test folder next to the components. In case vue cli is keeping them in dedicated folders I think we should stick to that so users coming from vue cli know the structure well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SudharakaP picture SudharakaP  路  3Comments

lsadehaan picture lsadehaan  路  3Comments

pascalgrimaud picture pascalgrimaud  路  3Comments

frantzynicolas picture frantzynicolas  路  3Comments

marcelinobadin picture marcelinobadin  路  3Comments