mirror of https://github.com/webpack/webpack.git
skip test on windows without admin
This commit is contained in:
parent
d2c5c1f623
commit
cdf9427bb5
|
|
@ -0,0 +1,16 @@
|
|||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
module.exports = () => {
|
||||
try {
|
||||
fs.symlinkSync(
|
||||
path.join(__dirname, "index.js"),
|
||||
path.join(__dirname, ".testlink"),
|
||||
"file"
|
||||
);
|
||||
fs.unlinkSync(path.join(__dirname, ".testlink"));
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue