2021-01-27 17:30:16 -05:00
|
|
|
describe("no error on unmatched pattern", () => {
|
2023-04-11 08:44:23 +08:00
|
|
|
runCli("cli/error-on-unmatched-pattern", [
|
2021-01-27 17:30:16 -05:00
|
|
|
"--no-error-on-unmatched-pattern",
|
|
|
|
|
"**/*.js",
|
|
|
|
|
]).test({
|
|
|
|
|
status: 0,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe("error on unmatched pattern", () => {
|
2023-04-11 08:44:23 +08:00
|
|
|
runCli("cli/error-on-unmatched-pattern", ["**/*.toml"]).test({
|
2021-01-27 17:30:16 -05:00
|
|
|
status: 2,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe("no error on unmatched pattern when 2nd glob has no match", () => {
|
2023-04-11 08:44:23 +08:00
|
|
|
runCli("cli/error-on-unmatched-pattern", [
|
2021-01-27 17:30:16 -05:00
|
|
|
"--no-error-on-unmatched-pattern",
|
|
|
|
|
"**/*.{json,js,yml}",
|
|
|
|
|
"**/*.toml",
|
|
|
|
|
]).test({
|
|
|
|
|
status: 0,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe("error on unmatched pattern when 2nd glob has no match", () => {
|
2023-04-11 08:44:23 +08:00
|
|
|
runCli("cli/error-on-unmatched-pattern", [
|
2021-01-27 17:30:16 -05:00
|
|
|
"**/*.{json,js,yml}",
|
|
|
|
|
"**/*.toml",
|
|
|
|
|
]).test({
|
|
|
|
|
status: 2,
|
|
|
|
|
});
|
|
|
|
|
});
|