保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5
PAMapp/node_modules/jest-changed-files/build/hg.js
@@ -81,14 +81,20 @@
const env = {...process.env, HGPLAIN: '1'};
const adapter = {
  findChangedFiles: async (cwd, options) => {
    const includePaths = (options && options.includePaths) || [];
    var _options$includePaths;
    const includePaths =
      (_options$includePaths = options.includePaths) !== null &&
      _options$includePaths !== void 0
        ? _options$includePaths
        : [];
    const args = ['status', '-amnu'];
    if (options && options.withAncestor) {
      args.push('--rev', `min((!public() & ::.)+.)^`);
    } else if (options && options.changedSince) {
    if (options.withAncestor) {
      args.push('--rev', 'min((!public() & ::.)+.)^');
    } else if (options.changedSince) {
      args.push('--rev', `ancestor(., ${options.changedSince})`);
    } else if (options && options.lastCommit === true) {
    } else if (options.lastCommit === true) {
      args.push('--change', '.');
    }