mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Use more accurate ensureDirSync
This commit is contained in:
parent
0b801a6aca
commit
25dec543af
@ -24,7 +24,7 @@ const { join } = require('path');
|
||||
const os = require('os');
|
||||
const Spec = require('mocha/lib/reporters/spec');
|
||||
const Runner = require('mocha/lib/runner');
|
||||
const { mkdirsSync, removeSync } = require('fs-extra');
|
||||
const { ensureDirSync, removeSync } = require('fs-extra');
|
||||
const { tmpDirCommonPath } = require('../tests/utils/fs');
|
||||
|
||||
// Ensure faster tests propagation
|
||||
@ -50,7 +50,7 @@ os.homedir = () => tmpDirCommonPath;
|
||||
if (process.env.USERPROFILE) process.env.USERPROFILE = tmpDirCommonPath;
|
||||
if (process.env.HOME) process.env.HOME = tmpDirCommonPath;
|
||||
|
||||
mkdirsSync(tmpDirCommonPath); // Ensure temporary homedir exists
|
||||
ensureDirSync(tmpDirCommonPath); // Ensure temporary homedir exists
|
||||
|
||||
module.exports = class ServerlessSpec extends Spec {
|
||||
constructor(runner) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user