Skip to content

Commit

Permalink
chore: Fix cypress docker integration when testing locally
Browse files Browse the repository at this point in the history
The tar library was updated but not the syntax adjusted.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jul 30, 2024
1 parent cef6753 commit 0153124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/dockerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
})
Expand Down

0 comments on commit 0153124

Please sign in to comment.