test(vhd-cli): from Jest to test (#6605)

This commit is contained in:
Gabriel Gunullu
2023-01-17 10:39:41 +01:00
committed by GitHub
parent b9b74ab1ac
commit adc5e7d0c0
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
'use strict'
/* eslint-env jest */
const { beforeEach, afterEach, test } = require('test')
const execa = require('execa')
const rimraf = require('rimraf')
@@ -11,8 +11,6 @@ const command = require('./commands/info')
const initialDir = process.cwd()
jest.setTimeout(10000)
beforeEach(async () => {
const dir = await pFromCallback(cb => tmp.dir(cb))
process.chdir(dir)

View File

@@ -34,11 +34,13 @@
"vhd-lib": "^4.2.0"
},
"scripts": {
"postversion": "npm publish"
"postversion": "npm publish",
"test": "node--test"
},
"devDependencies": {
"execa": "^4.0.0",
"rimraf": "^3.0.2",
"test": "^3.2.1",
"tmp": "^0.2.1"
}
}