diff --git a/Dockerfile b/Dockerfile index b031f59..6b469d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,10 @@ ENV PATH /root/composer/vendor/bin:$PATH 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 +# Install Cypress and testing-library dependencies. +RUN npm --prefix ./ install +ENV PATH $PATH:/var/www/node_modules/cypress/bin + # Add local settings COPY php-cli.ini /usr/local/php/etc/fpm/conf.d/z_php.ini COPY bash.rc /root/.bashrc diff --git a/package.json b/package.json new file mode 100644 index 0000000..bc7682f --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "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" + } +}