stable

Clone or download

Read-only

Migrate Planning-v2 to Jest

Part of request #13806: Use Jest as the default test framework for JS unit tests Also took the opportunity to move the assets to src/www/assets No functional change. Change-Id: I53f1eafff3cf4d4d12eb5efd91f0f1e5b87ed569

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Planning/PlanningJavascriptDependenciesProvider.php +3 −3 Go to diff View file
D plugins/agiledashboard/www/js/card-fields/index.spec.js +0 −1 Go to diff View file
M plugins/agiledashboard/www/js/jest.config.js +1 −1 Go to diff View file
D plugins/agiledashboard/www/js/planning-v2/.gitignore +0 −9 Go to diff View file
A plugins/agiledashboard/www/js/planning-v2/__mocks__/angular-tlp.js +22 −0 Go to diff View file
A plugins/agiledashboard/www/js/planning-v2/__mocks__/ckeditor.js +20 −0 Go to diff View file
A plugins/agiledashboard/www/js/planning-v2/jest.config.js +35 −0 Go to diff View file
D plugins/agiledashboard/www/js/planning-v2/karma.conf.js +0 −53 Go to diff View file
M plugins/agiledashboard/www/js/planning-v2/package.json +4 −5 Go to diff View file
M plugins/agiledashboard/www/js/planning-v2/src/app/app.js +2 −2 Go to diff View file
D plugins/agiledashboard/www/js/planning-v2/src/app/app.spec.js +0 −37 Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/backlog-item-collection/backlog-item-collection-service.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/backlog-item-rest/backlog-item-factory.spec.js Go to diff View file
D plugins/agiledashboard/www/js/planning-v2/src/app/backlog-item-rest/backlog-item-service.spec.js +0 −103 Go to diff View file
A plugins/agiledashboard/www/js/planning-v2/src/app/backlog-item-rest/backlog-item-service.test.js +116 −0 Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/backlog-item/backlog-item-controller.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/backlog-item/backlog-item-details/backlog-item-details-controller.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/backlog-rest/backlog-service.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/backlog/backlog-controller.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/drop/dropped-service.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/in-properties/in-properties-filter.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/item-progress/item-progress-controller.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/milestone-collection/milestone-collection-service.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/milestone-rest/milestone-service.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/milestone/milestone-controller.spec.js Go to diff View file
R plugins/agiledashboard/www/js/planning-v2/src/app/planning-controller.spec.js Go to diff View file
A plugins/agiledashboard/www/js/planning-v2/tests/card-fields.test.js +20 −0 Go to diff View file
A plugins/agiledashboard/www/js/planning-v2/tests/jest.setup.js +23 −0 Go to diff View file
M plugins/agiledashboard/www/js/planning-v2/webpack.config.js +9 −8 Go to diff View file
M tests/Jenkinsfile +0 −8 Go to diff View file
M tools/rpm/Makefile +0 −1 Go to diff View file