2021-12-02 10:19:32 +08:00
|
|
|
import path from "node:path";
|
|
|
|
|
import createEsmUtils from "esm-utils";
|
|
|
|
|
const { __dirname } = createEsmUtils(import.meta);
|
2017-09-11 00:21:56 +08:00
|
|
|
|
2017-10-02 11:08:34 -05:00
|
|
|
describe("support absolute filename", () => {
|
2023-04-11 08:44:23 +08:00
|
|
|
runCli("cli/ignore-absolute-path", [
|
2017-09-11 00:21:56 +08:00
|
|
|
path.resolve(__dirname, "../cli/ignore-absolute-path/ignored/module.js"),
|
|
|
|
|
path.resolve(__dirname, "../cli/ignore-absolute-path/depth1/ignored/*.js"),
|
|
|
|
|
path.resolve(__dirname, "../cli/ignore-absolute-path/regular-module.js"),
|
|
|
|
|
"-l",
|
2017-10-02 11:08:34 -05:00
|
|
|
]).test({
|
|
|
|
|
status: 1,
|
|
|
|
|
});
|
2017-09-11 00:21:56 +08:00
|
|
|
});
|