From 0153124f98ef75aea17f6b6224da221a9347ee60 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 30 Jul 2024 20:12:28 +0200 Subject: [PATCH] chore: Fix cypress docker integration when testing locally The tar library was updated but not the syntax adjusted. Signed-off-by: Ferdinand Thiessen --- cypress/dockerNode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/dockerNode.ts b/cypress/dockerNode.ts index 180ff7894c63a..33c2829c9d0bb 100644 --- a/cypress/dockerNode.ts +++ b/cypress/dockerNode.ts @@ -8,7 +8,7 @@ import Docker from 'dockerode' import waitOn from 'wait-on' -import tar from 'tar' +import { c as createTar } from 'tar' import path from 'path' import { execSync } from 'child_process' import { existsSync } from 'fs' @@ -170,7 +170,7 @@ export const applyChangesToNextcloud = async function() { const container = docker.getContainer(CONTAINER_NAME) // Tar-streaming the above folders into the container - const serverTar = tar.c({ gzip: false }, folderPaths) + const serverTar = createTar({ gzip: false }, folderPaths) await container.putArchive(serverTar, { path: htmlPath, })