Skip to content

Commit

Permalink
fix(docker): reenable visual regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Dec 26, 2022
1 parent d2b8076 commit 7a523e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ WORKDIR /usr/share/nginx/html

COPY ./docker/nginx.conf /etc/nginx/nginx.conf

COPY --from=build /srv/app/.output/public/ ./
COPY --from=collect /srv/app/.output/public/ ./

HEALTHCHECK --interval=10s CMD wget -O /dev/null http://localhost/api/healthcheck || exit 1

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"scripts": {
"dev": "nuxt dev",
"build": "nuxt build",
"start": "node .output/server/index.mjs",
"start": "npx http-server .output/public -p 3000",
"generate": "nuxt generate",
"cypress:open": "cypress open",
"cypress:test": "cypress run --env type=actual",
Expand All @@ -25,7 +25,7 @@
"lint:staged": "pnpm lint-staged",
"postinstall": "pnpm nuxt prepare && if [ -d '.git' ] && [ -d '.husky' ]; then husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks; fi",
"test:integration:dev": "cross-env NUXT_PUBLIC_IS_TESTING=1 WAIT_ON_TIMEOUT=100000 start-server-and-test 'pnpm dev' 'http://localhost:3000' 'pnpm cypress:test'",
"test:integration:prod": "cross-env NODE_ENV=production NUXT_PUBLIC_IS_TESTING=1 WAIT_ON_TIMEOUT=10000 start-server-and-test 'pnpm start' 'http://localhost:3000' 'pnpm cypress:test'",
"test:integration:prod": "cross-env NODE_ENV=production NUXT_PUBLIC_IS_TESTING=1 WAIT_ON_TIMEOUT=25000 start-server-and-test 'pnpm generate && pnpm start' 'http://localhost:3000' 'pnpm cypress:test'",
"test:integration:docker:build": "docker build -t test-integration_base --build-arg UID=$(id -u) --build-arg GID=$(id -g) --target test-integration_base .",
"test:integration:docker:run": "docker run --rm --entrypoint docker-entrypoint.sh -v \"$PWD:/srv/app\" test-integration_base",
"test:integration:docker:br": "pnpm test:integration:docker:build && pnpm test:integration:docker:run",
Expand Down

0 comments on commit 7a523e4

Please sign in to comment.