fix: add Dockerfile for cypress

* install additional dependencies for cypress
* remove duplicate cypress installation
This commit is contained in:
wancat authored and Annie Huang committed 2023-10-30 14:57:40 +08:00
1 parent 0c1acf1083
commit 9ac429a564
4 files changed
+258 -14

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
FROM cypress/included:13.3.2
WORKDIR /app
COPY package.json yarn.lock ./
COPY tests/package.json ./tests/package.json
WORKDIR /app/tests
RUN yarn install --frozen-lockfile
+2 -4
View File
@@ -5,10 +5,8 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"test": "cypress run"
},
"dependencies": {
"cypress": "^13.2.0"
"test": "cypress run",
"test:open": "cypress open"
},
"devDependencies": {
"@testing-library/cypress": "^10.0.1",