Clarifai / clarifai-javascript

Official Clarifai JavaScript client for browsers and node.js
https://docs.clarifai.com
Other
351 stars 81 forks source link

run integration and unit tests separately #42

Closed JeckyTian closed 4 years ago

JeckyTian commented 4 years ago

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.