1 Star 0 Fork 0

yyancy / coc.nvim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.js 523 Bytes
一键复制 编辑 原始数据 按行查看 历史
Heyward Fann 提交于 2020-08-17 17:34 . fix: TMPDIR in tests env (#2255)
const path = require('path')
const os = require('os')
const fs = require('fs')
process.on('uncaughtException', function (err) {
let msg = 'Uncaught exception: ' + err.stack
console.error(msg)
})
module.exports = async () => {
let dataHome = path.join(os.tmpdir(), `coc-test/${process.pid}`)
fs.mkdirSync(dataHome, {recursive: true})
process.env.NODE_ENV = 'test'
process.env.COC_DATA_HOME = dataHome
process.env.COC_VIMCONFIG = path.join(__dirname, 'src/__tests__')
process.env.TMPDIR = '/tmp/coc-test'
}
1
https://gitee.com/yyancyer/coc.nvim.git
git@gitee.com:yyancyer/coc.nvim.git
yyancyer
coc.nvim
coc.nvim
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891