Add jest to all tests
This commit is contained in:
parent
0c41631cc1
commit
3918d170f9
|
|
@ -62,26 +62,26 @@ pipelines:
|
|||
default:
|
||||
- step: *unittest-python
|
||||
- step: *cypress-test
|
||||
- step: *jest-test
|
||||
|
||||
branches:
|
||||
master:
|
||||
- step: *unittest-python
|
||||
- step: *cypress-test
|
||||
- step: *jest-test
|
||||
|
||||
develop:
|
||||
- step: *unittest-python
|
||||
- step: *cypress-test
|
||||
- step: *jest-test
|
||||
- step:
|
||||
name: deploy to stage on Heroku
|
||||
script:
|
||||
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-stage.git develop:master
|
||||
|
||||
feature/jest-tests:
|
||||
- step: *cypress-test
|
||||
- step: *jest-test
|
||||
|
||||
custom:
|
||||
prod:
|
||||
- step: *unittest-python
|
||||
- step: *cypress-test
|
||||
- step: *jest-test
|
||||
- step: *deploy-prod
|
||||
|
|
|
|||
|
|
@ -11,9 +11,7 @@ describe('ModuleNavigation.vue', () => {
|
|||
propsData: props
|
||||
});
|
||||
|
||||
|
||||
let arrayToFlatten = [[1], [2, 3], [4, 5, 6], [7]]
|
||||
|
||||
let flattenedArray = wrapper.vm.flattenArray(arrayToFlatten);
|
||||
expect(flattenedArray).toEqual([1, 2, 3, 4, 5, 6, 7]);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue