aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-30 20:12:28 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-07-30 20:12:28 +0200
commit0153124f98ef75aea17f6b6224da221a9347ee60 (patch)
treec76d7e5e2b68cac62c50d215f39a547a5c395405 /cypress
parentcef675358b202f6504a2883ca6502434c19d8f26 (diff)
downloadnextcloud-server-0153124f98ef75aea17f6b6224da221a9347ee60.tar.gz
nextcloud-server-0153124f98ef75aea17f6b6224da221a9347ee60.zip
chore: Fix cypress docker integration when testing locally
The tar library was updated but not the syntax adjusted. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/dockerNode.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cypress/dockerNode.ts b/cypress/dockerNode.ts
index 180ff7894c6..33c2829c9d0 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,
})