1 Star 0 Fork 0

venceplace/coc.nvim

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
jest.js 696 Bytes
Copy Edit Raw Blame History
const path = require('path')
const os = require('os')
const fs = require('fs')
const tmpdir = process.env.TMPDIR = path.join(os.tmpdir(), 'coc-test')
process.on('uncaughtException', err => {
let msg = 'Uncaught exception: ' + err.stack
console.error(msg)
})
process.on('exit', () => {
fs.rmdirSync(process.env.TMPDIR, {recursive: true, force: true})
})
module.exports = async () => {
let dataHome = path.join(tmpdir, process.pid.toString())
fs.mkdirSync(dataHome, {recursive: true})
process.env.VIMRUNTIME = ''
process.env.NODE_ENV = 'test'
process.env.COC_NVIM = '1'
process.env.COC_DATA_HOME = dataHome
process.env.COC_VIMCONFIG = path.join(__dirname, 'src/__tests__')
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/venceplace/coc.nvim.git
git@gitee.com:venceplace/coc.nvim.git
venceplace
coc.nvim
coc.nvim
master

Search

0d507c66 1850385 C8b1a773 1850385