diff --git a/Dockerfile b/Dockerfile index 83cf2be..0e2b416 100644 --- a/Dockerfile +++ b/Dockerfile @@ -73,6 +73,11 @@ RUN composer global require "drush/drush:$DRUSH_VER" squizlabs/php_codesniffer d RUN mv /root/.config/composer /root/composer ENV PATH /root/composer/vendor/bin:$PATH +# Install Cypress and testing-library dependencies. +COPY package.json /usr/local/bin +RUN npm --prefix /usr/local/bin install +ENV PATH $PATH:/usr/local/bin/node_modules/cypress/bin + # Add git completion for the cli RUN curl -o ~/.git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash &&\ curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh diff --git a/package.json b/package.json new file mode 100644 index 0000000..f406023 --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "dependencies": { + "@testing-library/jest-dom": "^4.2.4", + "@testing-library/react": "^9.3.2", + "@testing-library/user-event": "^7.1.2", + "@testing-library/cypress": "^6.0.0", + "@testing-library/dom": "^7.16.1", + "cypress": "~8.7.0", + "eslint-plugin-cypress": "^2.11.1" + } +} +