stable

Clone or download

Read-only

Move tests related to Tuleap Core to Jest

Babel configuration has been tweaked a bit: the tested code use Array.prototype.flatMap() which is available only in node 11+. Tuleap documentation states that developpers should at least use node 8 so the call has been polyfilled. Part of request #13806: Use Jest as the default test framework for JS unit tests Change-Id: I4863c539bdc5b5dc33c57eed43350b498ef46cf6

Modified Files

Name
M src/www/scripts/jest.config.js +1 −6 Go to diff View file
D src/www/scripts/karma.richtext.js +0 −44 Go to diff View file
D src/www/scripts/karma.vue.js +0 −44 Go to diff View file
M src/www/scripts/package.json +2 −5 Go to diff View file
D src/www/scripts/project/admin/services/app.spec.js +0 −24 Go to diff View file
R src/www/scripts/project/admin/services/src/components/BaseProjectAdminEditModal.spec.js Go to diff View file
R src/www/scripts/project/admin/services/src/components/BaseSiteAdminEditModal.spec.js Go to diff View file
R src/www/scripts/project/admin/services/src/components/Service/InEditionCustomService.spec.js Go to diff View file
M src/www/scripts/project/admin/services/src/components/Service/InEditionCustomService.vue +6 −1 Go to diff View file
D src/www/scripts/tuleap/ckeditor/app.spec.js +0 −24 Go to diff View file
R src/www/scripts/tuleap/ckeditor/consistent-uploaded-files-before-submit-checker.spec.js Go to diff View file
R src/www/scripts/tuleap/ckeditor/file-upload-handler-factory.spec.js Go to diff View file
R src/www/scripts/tuleap/ckeditor/form-adapter.spec.js Go to diff View file
R src/www/scripts/tuleap/ckeditor/get-upload-image-options.spec.js Go to diff View file
R src/www/scripts/tuleap/ckeditor/image-urls-finder.spec.js Go to diff View file
M tests/Jenkinsfile +0 −3 Go to diff View file
M tools/utils/generate-po.php +1 −0 Go to diff View file
M tools/utils/scripts/webpack-rule-configs.js +26 −17 Go to diff View file