diff --git a/.dockerignore b/.dockerignore index 266b8ed2..df79353b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -13,7 +13,6 @@ Dockerfile* # Tipi folder logs/ -tests/ state/ templates/ scripts/ @@ -24,4 +23,4 @@ data/ apps/ app-data/ .github/ -__mocks__/ \ No newline at end of file +__mocks__/ diff --git a/Dockerfile b/Dockerfile index 53652c9e..e90cb0f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ COPY ./esbuild.js ./esbuild.js COPY ./tsconfig.json ./tsconfig.json COPY ./next.config.mjs ./next.config.mjs COPY ./public ./public +COPY ./tests ./tests RUN npm run build diff --git a/src/server/tests/vite.setup.ts b/src/server/tests/vite.setup.ts index 5f3e2073..e8800b98 100644 --- a/src/server/tests/vite.setup.ts +++ b/src/server/tests/vite.setup.ts @@ -1,5 +1,5 @@ +import { redisMock } from '@/tests/mocks/redis'; import { vi } from 'vitest'; -import { redisMock } from '../../../tests/mocks/redis'; vi.mock('../core/Logger', () => ({ Logger: {