Since we are using axios-mock-adapter within unit tests which modifies the adapter attribute of default axios instance, and we are mixing the running of integration tests and integration tests. So, once unit tests run before integration tests, integeration tests will fail then. (404 undefined undefined response from axios.)
In this PR, I modified "gulp test" task to use 2 gulp.tasks (for integration test and unit test respectively) so that integration tests and unit tests run seperately.
Since we are using
axios-mock-adapter
within unit tests which modifies theadapter
attribute of default axios instance, and we are mixing the running of integration tests and integration tests. So, once unit tests run before integration tests, integeration tests will fail then. (404 undefined undefined
response from axios.)In this PR, I modified "gulp test" task to use 2 gulp.tasks (for integration test and unit test respectively) so that integration tests and unit tests run seperately.