Currently, all tests are in the same folder:
src/Administration/Resources/app/administration/test. This approach has some disadvantages:
- While changing a component, you have to search for the corresponding test file
- You can't see which components are tested and which are not
We will move the tests to the same folder as the components they test. This approach is standard in the Vue community and solves the problems mentioned above.
The test for the
sw-cms-el-config-imagecomponent will be moved to
src/Administration/Resources/app/administration/src/module/sw-cms/component/sw-cms-el-config-image/sw-cms-el-config-image.spec.js. The test file should contain the same name as the component it tests. So a valid test file name would be
[component name].spec.js|ts. The
]are not part of the name. Additionally test files are either
.tsfiles. Typescript is preferred.
Test files will no longer be loaded from the test folder.