(file)
| 467 | test("Search from directory, not treat file as directory", async () => { |
| 468 | // CLI |
| 469 | const getConfigFileByCli = async (file) => { |
| 470 | const { stdout: configFile } = await runCli("cli/config/config-position/", [ |
| 471 | "--find-config-path", |
| 472 | file, |
| 473 | ]); |
| 474 | return configFile; |
| 475 | }; |
| 476 | |
| 477 | expect(await getConfigFileByCli("file.js")).toBe(".prettierrc"); |
| 478 | expect(await getConfigFileByCli("directory/file-in-child-directory.js")).toBe( |
no test coverage detected
searching dependent graphs…