ci: fix dockerfile to copy tests folder

This commit is contained in:
Nicolas Meienberger 2023-06-28 22:44:56 +02:00
parent 0555a7f321
commit f3d3cfac07
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,6 @@ Dockerfile*
# Tipi folder # Tipi folder
logs/ logs/
tests/
state/ state/
templates/ templates/
scripts/ scripts/
@ -24,4 +23,4 @@ data/
apps/ apps/
app-data/ app-data/
.github/ .github/
__mocks__/ __mocks__/

View file

@ -23,6 +23,7 @@ COPY ./esbuild.js ./esbuild.js
COPY ./tsconfig.json ./tsconfig.json COPY ./tsconfig.json ./tsconfig.json
COPY ./next.config.mjs ./next.config.mjs COPY ./next.config.mjs ./next.config.mjs
COPY ./public ./public COPY ./public ./public
COPY ./tests ./tests
RUN npm run build RUN npm run build

View file

@ -1,5 +1,5 @@
import { redisMock } from '@/tests/mocks/redis';
import { vi } from 'vitest'; import { vi } from 'vitest';
import { redisMock } from '../../../tests/mocks/redis';
vi.mock('../core/Logger', () => ({ vi.mock('../core/Logger', () => ({
Logger: { Logger: {