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