API Integration Testing in Google Cloud Shell - part 2 - using Docker to Resolve Version Issues

preview_player
Показать описание
We discover that we can use Git to undo the code changes we don't want to keep: git stash
We then create a Dockerfile using node:14-alpine as the base image, so we can use our NodeJS tests that were written for Node 14 or higher. It turns out Google Cloud runs Node 12, which doesn't support the feature we are using.

We run: docker build . -t api-test
To create a docker image for api testing. Notice that during the build the test succeeds. Yay!
Рекомендации по теме
Комментарии
Автор

Thank you this was helpful 👍 keep up the videos man

jamestwt