test(backups): fix issues introduced by conversion to ESM

Introduced by 1005e295b
This commit is contained in:
Julien Fontanet
2023-07-10 16:58:12 +02:00
parent c3e0308ad0
commit df740b1e8e
2 changed files with 5 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
import { beforeEach, afterEach, test, describe } from 'test'
import test from 'test'
import { strict as assert } from 'node:assert'
import tmp from 'tmp'
import fs from 'fs-extra'
import uuid from 'uuid'
import * as uuid from 'uuid'
import { getHandler } from '@xen-orchestra/fs'
import { pFromCallback } from 'promise-toolbox'
import { RemoteAdapter } from './RemoteAdapter.mjs'
@@ -13,6 +13,8 @@ import { checkAliases } from './_cleanVm.mjs'
import { dirname, basename } from 'node:path'
import { rimraf } from 'rimraf'
const { beforeEach, afterEach, describe } = test
let tempDir, adapter, handler, jobId, vdiId, basePath, relativePath
const rootPath = 'xo-vm-backups/VMUUID/'

View File

@@ -14,7 +14,7 @@
},
"scripts": {
"postversion": "npm publish --access public",
"test-integration": "node--test *.integ.js"
"test-integration": "node--test *.integ.mjs"
},
"dependencies": {
"@kldzj/stream-throttle": "^1.1.1",