replace jest with ava
This commit is contained in:
parent
27cc8b23fe
commit
0347b72305
11775 changed files with 84546 additions and 1440575 deletions
21
node_modules/is-path-inside/index.js
generated
vendored
Normal file
21
node_modules/is-path-inside/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
'use strict';
|
||||
const path = require('path');
|
||||
|
||||
module.exports = (childPath, parentPath) => {
|
||||
childPath = path.resolve(childPath);
|
||||
parentPath = path.resolve(parentPath);
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
childPath = childPath.toLowerCase();
|
||||
parentPath = parentPath.toLowerCase();
|
||||
}
|
||||
|
||||
if (childPath === parentPath) {
|
||||
return false;
|
||||
}
|
||||
|
||||
childPath += path.sep;
|
||||
parentPath += path.sep;
|
||||
|
||||
return childPath.startsWith(parentPath);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue