==> Building on luxio ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 1,208 100% 0.00kB/s 0:00:00 1,208 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) prettier-2.8.7-1.log 250 100% 244.14kB/s 0:00:00 250 100% 244.14kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 971 bytes received 69 bytes 693.33 bytes/sec total size is 1,400 speedup is 1.35 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix17 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix17]...done ==> Making package: prettier 2.8.7-1 (Thu Jun 1 22:10:46 2023) ==> Retrieving sources...  -> Downloading prettier-2.8.7.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1557k 0 1557k 0 0 2037k 0 --:--:-- --:--:-- --:--:-- 2037k 100 3396k 0 3396k 0 0 3311k 0 --:--:-- 0:00:01 --:--:-- 7045k ==> Validating source files with sha256sums... prettier-2.8.7.tar.gz ... Passed ==> Making package: prettier 2.8.7-1 (Thu Jun 1 22:10:54 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (4) New Version Net Change extra/c-ares 1.19.1-1 0.45 MiB core/libnsl 2.0.0-3 0.06 MiB extra/libuv 1.44.2-1 0.52 MiB extra/nodejs 20.2.0-1 56.93 MiB Total Installed Size: 57.96 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing libuv... installing c-ares... installing nodejs... Optional dependencies for nodejs npm: nodejs package manager [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (6) New Version Net Change extra/node-gyp 9.3.1-1 4.43 MiB extra/nodejs-nopt 7.1.0-1 0.03 MiB core/python 3.11.3-1 104.68 MiB extra/semver 7.3.8-1 0.11 MiB extra/npm 8.19.2-2 6.49 MiB extra/yarn 1.22.19-1 5.08 MiB Total Installed Size: 120.83 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing yarn... installing nodejs-nopt... installing python... Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing semver... installing node-gyp... installing npm... [?25h==> Retrieving sources...  -> Found prettier-2.8.7.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting prettier-2.8.7.tar.gz with bsdtar ==> Starting prepare()... yarn install v1.22.19 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... [4/5] Linking dependencies... warning " > @typescript-eslint/eslint-plugin@5.55.0" has unmet peer dependency "@typescript-eslint/parser@^5.0.0". warning " > rollup-plugin-license@2.7.0" has unmet peer dependency "rollup@^1.0.0 || ^2.0.0". [5/5] Building fresh packages... Done in 79.90s. ==> Starting build()... yarn run v1.22.19 $ node ./scripts/build/build.mjs Building packages index.js....................... DONE doc.js......................... DONE standalone.js.................. DONE esm/standalone.mjs........... DONE bin-prettier.js................ DONE cli.js......................... DONE third-party.js................. DONE parser-babel.js................ DONE esm/parser-babel.mjs......... DONE parser-flow.js................. DONE esm/parser-flow.mjs.......... DONE parser-typescript.js........... DONE esm/parser-typescript.mjs.... DONE parser-espree.js............... DONE esm/parser-espree.mjs........ DONE parser-meriyah.js.............. DONE esm/parser-meriyah.mjs....... DONE parser-angular.js.............. DONE esm/parser-angular.mjs....... DONE parser-postcss.js.............. DONE esm/parser-postcss.mjs....... DONE parser-graphql.js.............. DONE esm/parser-graphql.mjs....... DONE parser-markdown.js............. DONE esm/parser-markdown.mjs...... DONE parser-glimmer.js.............. DONE esm/parser-glimmer.mjs....... DONE parser-html.js................. DONE esm/parser-html.mjs.......... DONE parser-yaml.js................. DONE esm/parser-yaml.mjs.......... DONE Done in 179.80s. ==> Starting check()... yarn run v1.22.19 $ cross-env NODE_ENV=production jest --testPathIgnorePatterns tests/integration/__tests__/third-party.js Prettier installed at /tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier from /build/prettier/src/prettier-2.8.7/dist with yarn. PASS tests/integration/__tests__/util-shared.js (10.417 s) PASS tests/integration/__tests__/doc-builders.js (11.171 s) PASS tests/integration/__tests__/doc-utils-clean-doc.js (11.326 s) PASS tests/integration/__tests__/format-ast.js (11.823 s) PASS tests/integration/__tests__/debug-api.js (14.182 s) PASS tests/format/json/json-superset/jsfmt.spec.js (14.373 s) PASS tests/format/handlebars/html-whitespace-sensitivity/jsfmt.spec.js (15.759 s) FAIL tests/integration/__tests__/patterns-glob.js (16.884 s) ● fixtures-1: Should match all files › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/patterns-glob.js:15:75 at Object. (tests/integration/__tests__/patterns-glob.js:14:1) ● fixtures-1: Should match all files › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match all files › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match all files › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match files except `a.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match files except `a.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match files except `a.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match files except `a.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match all js files and all supported files in the '!dir.js' directory › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match all js files and all supported files in the '!dir.js' directory › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match all js files and all supported files in the '!dir.js' directory › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match all js files and all supported files in the '!dir.js' directory › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match `a.js` and `!b.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match `a.js` and `!b.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match `a.js` and `!b.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match `a.js` and `!b.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should only match `!b.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should only match `!b.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should only match `!b.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should only match `!b.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should match `outside.js`, `dir/inside.js` and `dir/node_modules/in-node_modules.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should match `outside.js`, `dir/inside.js` and `dir/node_modules/in-node_modules.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should match `outside.js`, `dir/inside.js` and `dir/node_modules/in-node_modules.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should match `outside.js`, `dir/inside.js` and `dir/node_modules/in-node_modules.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should only match `outside.js` and `dir/inside.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should only match `outside.js` and `dir/inside.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should only match `outside.js` and `dir/inside.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should only match `outside.js` and `dir/inside.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (existing) › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (existing) › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (existing) › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (existing) › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (nonexisting) › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (nonexisting) › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (nonexisting) › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (nonexisting) › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #2 › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #2 › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #2 › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #2 › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #3 › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #3 › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #3 › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #3 › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● should not ignore file paths contains object prototype keys › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● should not ignore file paths contains object prototype keys › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● should not ignore file paths contains object prototype keys › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● should not ignore file paths contains object prototype keys › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) FAIL tests/integration/__tests__/patterns.js (16.126 s) ● multiple patterns › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/patterns.js:12:6 at Object. (tests/integration/__tests__/patterns.js:7:1) ● multiple patterns › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with non exists pattern › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with non exists pattern › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with non exists pattern › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with non exists pattern › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with ignore nested directories pattern › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with ignore nested directories pattern › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with ignore nested directories pattern › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with ignore nested directories pattern › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by default › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by default › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by default › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by default › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by with ./**/*.js › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by with ./**/*.js › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by with ./**/*.js › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by with ./**/*.js › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, doesn't ignore node_modules with --with-node-modules flag › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, doesn't ignore node_modules with --with-node-modules flag › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, doesn't ignore node_modules with --with-node-modules flag › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, doesn't ignore node_modules with --with-node-modules flag › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● no errors on empty patterns › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● no errors on empty patterns › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● no errors on empty patterns › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● no errors on empty patterns › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns, throw error and exit with non zero code on non existing files › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns, throw error and exit with non zero code on non existing files › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns, throw error and exit with non zero code on non existing files › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns, throw error and exit with non zero code on non existing files › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) FAIL tests/integration/__tests__/with-config-precedence.js (17.585 s) ● CLI overrides take precedence without --config-precedence › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/with-config-precedence.js:12:6 at Object. (tests/integration/__tests__/with-config-precedence.js:5:1) ● CLI overrides take precedence without --config-precedence › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence without --config-precedence › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence without --config-precedence › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence with --config-precedence cli-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence with --config-precedence cli-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence with --config-precedence cli-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence with --config-precedence cli-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take lower precedence with --config-precedence file-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take lower precedence with --config-precedence file-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take lower precedence with --config-precedence file-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take lower precedence with --config-precedence file-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides are still applied when no config is found with --config-precedence file-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides are still applied when no config is found with --config-precedence file-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides are still applied when no config is found with --config-precedence file-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides are still applied when no config is found with --config-precedence file-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets ignored when config exists with --config-precedence prefer-file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets ignored when config exists with --config-precedence prefer-file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets ignored when config exists with --config-precedence prefer-file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets ignored when config exists with --config-precedence prefer-file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets applied when no config exists with --config-precedence prefer-file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets applied when no config exists with --config-precedence prefer-file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets applied when no config exists with --config-precedence prefer-file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets applied when no config exists with --config-precedence prefer-file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence cli-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence cli-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence cli-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence cli-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence file-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence file-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence file-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence file-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence prefer-file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence prefer-file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence prefer-file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence prefer-file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence prefer-file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence prefer-file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence prefer-file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence prefer-file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence file-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence file-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence file-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence file-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence cli-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence cli-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence cli-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence cli-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) PASS tests/format/html/whitespace/jsfmt.spec.js (17.686 s) PASS tests/integration/__tests__/doc-trim.js PASS tests/integration/__tests__/format.js (18.326 s) FAIL tests/integration/__tests__/patterns-dirs.js (20.079 s) ● 1: prettier dir1 dir2 › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/patterns-dirs.js:168:42 at testPatterns (tests/integration/__tests__/patterns-dirs.js:167:3) at Object. (tests/integration/__tests__/patterns-dirs.js:30:1) ● 1: prettier dir1 dir2 › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1: prettier dir1 dir2 › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1: prettier dir1 dir2 › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1a - with *.foo plugin: prettier dir1 dir2 --plugin=../../plugins/extensions/plugin › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1a - with *.foo plugin: prettier dir1 dir2 --plugin=../../plugins/extensions/plugin › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1a - with *.foo plugin: prettier dir1 dir2 --plugin=../../plugins/extensions/plugin › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1a - with *.foo plugin: prettier dir1 dir2 --plugin=../../plugins/extensions/plugin › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1b - special characters in dir name: prettier dir1 '!dir' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1b - special characters in dir name: prettier dir1 '!dir' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1b - special characters in dir name: prettier dir1 '!dir' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1b - special characters in dir name: prettier dir1 '!dir' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1c: prettier dir1 empty › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1c: prettier dir1 empty › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1c: prettier dir1 empty › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1c: prettier dir1 empty › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 2: prettier dir1 'dir2/**/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 2: prettier dir1 'dir2/**/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 2: prettier dir1 'dir2/**/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 2: prettier dir1 'dir2/**/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 3: prettier nonexistent-dir 'dir2/**/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 3: prettier nonexistent-dir 'dir2/**/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 3: prettier nonexistent-dir 'dir2/**/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 3: prettier nonexistent-dir 'dir2/**/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 4: prettier . 'dir2/**/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 4: prettier . 'dir2/**/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 4: prettier . 'dir2/**/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 4: prettier . 'dir2/**/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 1: prettier ./ › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 1: prettier ./ › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 1: prettier ./ › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 1: prettier ./ › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 2: prettier .// › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 2: prettier .// › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 2: prettier .// › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 2: prettier .// › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 3: prettier dir1/ › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 3: prettier dir1/ › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 3: prettier dir1/ › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 3: prettier dir1/ › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 4: prettier dir1// › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 4: prettier dir1// › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 4: prettier dir1// › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 4: prettier dir1// › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 5: prettier .//dir2/..//./dir1// › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 5: prettier .//dir2/..//./dir1// › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 5: prettier .//dir2/..//./dir1// › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 5: prettier .//dir2/..//./dir1// › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 1: prettier .. › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 1: prettier .. › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 1: prettier .. › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 1: prettier .. › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 2: prettier ../ › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 2: prettier ../ › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 2: prettier ../ › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 2: prettier ../ › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 3: prettier ../dir1 › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 3: prettier ../dir1 › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 3: prettier ../dir1 › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 3: prettier ../dir1 › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 4: prettier ../dir1/ › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 4: prettier ../dir1/ › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 4: prettier ../dir1/ › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 4: prettier ../dir1/ › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1: prettier dir1 '!dir1/nested1' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1: prettier dir1 '!dir1/nested1' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1: prettier dir1 '!dir1/nested1' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1: prettier dir1 '!dir1/nested1' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1a: prettier dir1 '!dir1/nested1/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1a: prettier dir1 '!dir1/nested1/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1a: prettier dir1 '!dir1/nested1/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1a: prettier dir1 '!dir1/nested1/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 2: prettier . '!dir1/nested1' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 2: prettier . '!dir1/nested1' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 2: prettier . '!dir1/nested1' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 2: prettier . '!dir1/nested1' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 3: prettier . '!dir1/nested1/an1.js' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 3: prettier . '!dir1/nested1/an1.js' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 3: prettier . '!dir1/nested1/an1.js' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 3: prettier . '!dir1/nested1/an1.js' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 4: prettier '!nonexistent-dir1 !nonexistent-dir2' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 4: prettier '!nonexistent-dir1 !nonexistent-dir2' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 4: prettier '!nonexistent-dir1 !nonexistent-dir2' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 4: prettier '!nonexistent-dir1 !nonexistent-dir2' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › with explicit files: prettier dir1/a1.js dir2/a2.js '!dir1/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › with explicit files: prettier dir1/a1.js dir2/a2.js '!dir1/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › with explicit files: prettier dir1/a1.js dir2/a2.js '!dir1/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › with explicit files: prettier dir1/a1.js dir2/a2.js '!dir1/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Exclude yarn.lock when expanding directories: prettier . › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Exclude yarn.lock when expanding directories: prettier . › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Exclude yarn.lock when expanding directories: prettier . › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Exclude yarn.lock when expanding directories: prettier . › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `.` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `.` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `.` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `.` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `*` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `*` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `*` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `*` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\/test.js' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\/test.js' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\/test.js' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\/test.js' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a*/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a*/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a*/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a*/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?/test.js' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?/test.js' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?/test.js' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?/test.js' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b*/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b*/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b*/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b*/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) PASS tests/integration/__tests__/normalize-doc.js PASS tests/format/misc/errors/js/jsfmt.spec.js (6.309 s) FAIL tests/integration/__tests__/config-resolution.js (23.742 s) ● resolves configuration from external files › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/config-resolution.js:11:66 at Object. (tests/integration/__tests__/config-resolution.js:10:1) ● resolves configuration from external files › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files and overrides by extname › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files and overrides by extname › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files and overrides by extname › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files and overrides by extname › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● accepts configuration from --config › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● accepts configuration from --config › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● accepts configuration from --config › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● accepts configuration from --config › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves external configuration from package.json › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves external configuration from package.json › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves external configuration from package.json › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves external configuration from package.json › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration file with --find-config-path file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration file with --find-config-path file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration file with --find-config-path file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration file with --find-config-path file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves json configuration file with --find-config-path file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves json configuration file with --find-config-path file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves json configuration file with --find-config-path file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves json configuration file with --find-config-path file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves yaml configuration file with --find-config-path file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves yaml configuration file with --find-config-path file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves yaml configuration file with --find-config-path file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves yaml configuration file with --find-config-path file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves toml configuration file with --find-config-path file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves toml configuration file with --find-config-path file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves toml configuration file with --find-config-path file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves toml configuration file with --find-config-path file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● prints error message when no file found with --find-config-path › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● prints error message when no file found with --find-config-path › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● prints error message when no file found with --find-config-path › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● prints error message when no file found with --find-config-path › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● API resolveConfig with no args expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 3 - Object {} + Object { + "endOfLine": "auto", + } 82 | test("API resolveConfig with no args", () => 83 | prettier.resolveConfig().then((result) => { > 84 | expect(result).toEqual({}); | ^ 85 | })); 86 | 87 | test("API resolveConfig.sync with no args", () => { at tests/integration/__tests__/config-resolution.js:84:20 ● API resolveConfig.sync with no args expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 3 - Object {} + Object { + "endOfLine": "auto", + } 86 | 87 | test("API resolveConfig.sync with no args", () => { > 88 | expect(prettier.resolveConfig.sync()).toEqual({}); | ^ 89 | }); 90 | 91 | test("API resolveConfig with file arg", () => { at Object. (tests/integration/__tests__/config-resolution.js:88:41) PASS tests/format/jsx/whitespace/jsfmt.spec.js (23.496 s) FAIL tests/integration/__tests__/ignore-unknown.js (9.675 s) ● ignore-unknown dir › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/ignore-unknown.js:10:6 at Object. (tests/integration/__tests__/ignore-unknown.js:5:1) ● ignore-unknown dir › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown dir › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown dir › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown alias › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown alias › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown alias › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown alias › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown pattern › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown pattern › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown pattern › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown pattern › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown write › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown write › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown write › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown write › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown check › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown check › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown check › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown check › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● None exist file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● None exist file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● None exist file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● None exist file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Not matching pattern › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Not matching pattern › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Not matching pattern › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Not matching pattern › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Ignored file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Ignored file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Ignored file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Ignored file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) PASS tests/integration/__tests__/doc-mark-as-root.js PASS tests/integration/__tests__/parser-api.js (26.907 s) PASS tests/integration/__tests__/load-toml.js PASS tests/integration/__tests__/with-parser-inference.js (27.894 s) PASS tests/format/markdown/auto-link/jsfmt.spec.js (29.203 s) PASS tests/format/misc/parser-inference/jsfmt.spec.js (12.225 s) PASS tests/integration/__tests__/ignore-in-subdirectories.js (21.706 s) PASS tests/integration/__tests__/line-suffix-boundary.js PASS tests/format/misc/errors/json/jsfmt.spec.js (9.929 s) ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/ignore-unknown.js. at Object.get babel [as babel] (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:16) at resolveParser (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) at normalize (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) at formatWithCursor2 (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) at Object.formatWithCursor (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] javascript.js: TypeError: Cannot read properties of undefined (reading 'babel') [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) PASS tests/format/misc/errors/handlebars/jsfmt.spec.js (6.661 s) PASS tests/integration/__tests__/plugin-options-string.js (24.258 s) FAIL tests/integration/__tests__/cache.js (36.263 s) ● --cache option › --cache-strategy metadata › creates default cache file named `node_modules/.cache/prettier/.prettier-cache` thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 88 | 89 | describe("--cache-strategy metadata", () => { > 90 | it("creates default cache file named `node_modules/.cache/prettier/.prettier-cache`", async () => { | ^ 91 | await expect(fs.stat(defaultCacheFile)).rejects.toHaveProperty( 92 | "code", 93 | "ENOENT" at tests/integration/__tests__/cache.js:90:5 at tests/integration/__tests__/cache.js:89:3 at Object. (tests/integration/__tests__/cache.js:14:1) ● --cache option › --cache-strategy metadata › doesn't format when cache is available thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 97 | }); 98 | > 99 | it("doesn't format when cache is available", async () => { | ^ 100 | const { stdout: firstStdout } = await runPrettier(dir, [ 101 | "--cache", 102 | "--write", at tests/integration/__tests__/cache.js:99:5 at tests/integration/__tests__/cache.js:89:3 at Object. (tests/integration/__tests__/cache.js:14:1) ● --cache option › --cache-strategy metadata › re-formats when a file has been updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › re-formats when timestamp has been updated Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › re-formats when options has been updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › re-formats after execution without write. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › re-formats when multiple cached files are updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › doesn't cache files when write error. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › removes cache file when run Prettier without `--cache` option Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › creates default cache file named `node_modules/.cache/prettier/.prettier-cache` Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › doesn't format when cache is available Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › re-formats when a file has been updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › doesn't re-format when timestamp has been updated Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › re-formats when options has been updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › re-formats after execution without write. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › re-formats when multiple cached files are updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › doesn't cache files when write error. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › removes cache file when run Prettier without `--cache` option Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-location › doesn't create default cache file when `--cache-location` exists Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-location › throws error for invalid JSON file Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-location › file › creates the cache file at location specified by `--cache-location` Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-location › file › does'nt format when cache is available Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) PASS tests/integration/__tests__/cursor-offset.js (11.604 s) PASS tests/integration/__tests__/doc-printer.js PASS tests/integration/__tests__/support-info.js (9.26 s) PASS tests/integration/__tests__/plugin-options.js (25.381 s) PASS tests/integration/__tests__/check.js (21.133 s) PASS tests/integration/__tests__/plugin-default-options.js (9.139 s) PASS tests/integration/__tests__/ignore-path.js (17.317 s) PASS tests/integration/__tests__/early-exit.js (39.591 s) PASS tests/format/js/cursor/jsfmt.spec.js (27.955 s) FAIL tests/integration/__tests__/list-different.js (20.701 s) ● checks stdin with --list-different › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: " ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/patterns-dirs.js.· 115 | 116 | try { > 117 | await require(prettierCli); | ^ 118 | status = (status === undefined ? process.exitCode : status) || 0; 119 | } catch (error) { 120 | status = 1; at Object.get babel [as babel] (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:16) at resolveParser (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) at normalize (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) at formatWithCursor2 (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) at Object.formatWithCursor (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] dir1/b1.js: TypeError: Cannot read properties of undefined (reading 'babel') [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) " at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with -l (alias for --list-different) › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 3 + + + (stdin) ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with -l (alias for --list-different) › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: ../with-shebang/dir1/nested1/an1.css [error] ENOENT: no such file or directory, open '../with-shebang/dir1/nested1/an1.css' [error] Unable to read file: ../with-shebang/dir1/nested1/an1.js [error] ENOENT: no such file or directory, open '../with-shebang/dir1/nested1/an1.js' [error] Unable to read file: ../with-shebang/dir1/nested1/bn1.js [error] ENOENT: no such file or directory, open '../with-shebang/dir1/nested1/bn1.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● --list-different works in CI just as in a non-TTY mode › (stdout) expect(received).toMatchSnapshot() Snapshot name: `--list-different works in CI just as in a non-TTY mode (stdout) 1` - Snapshot - 0 + Received + 4 + ../write/dir2/a2.js + ../write/dir2/b2.js + ../write/dir2/nested2/an2.js + ../write/dir2/nested2/bn2.js unformatted.js ↵ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● --list-different works in CI just as in a non-TTY mode › (stderr) expect(received).toMatchSnapshot() Snapshot name: `--list-different works in CI just as in a non-TTY mode (stderr) 1` - Snapshot - 0 + Received + 9 + [error] Unable to read file: ../write/dir2/a2.js + [error] ENOENT: no such file or directory, open '../write/dir2/a2.js' + [error] Unable to read file: ../write/dir2/b2.js + [error] ENOENT: no such file or directory, open '../write/dir2/b2.js' + [error] Unable to read file: ../write/dir2/nested2/an2.js + [error] ENOENT: no such file or directory, open '../write/dir2/nested2/an2.js' + [error] Unable to read file: ../write/dir2/nested2/bn2.js + [error] ENOENT: no such file or directory, open '../write/dir2/nested2/bn2.js' + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● --list-different works in CI just as in a non-TTY mode › Should be the same expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 4 + ../write/dir2/a2.js + ../write/dir2/b2.js + ../write/dir2/nested2/an2.js + ../write/dir2/nested2/bn2.js unformatted.js ↵ 46 | 47 | test("Should be the same", async () => { > 48 | expect(await result0.stdout).toEqual(await result1.stdout); | ^ 49 | }); 50 | }); 51 | at Object. (tests/integration/__tests__/list-different.js:48:34) › 2 snapshots failed. FAIL tests/integration/__tests__/debug-check.js (23.764 s) ● doesn't crash when --debug-check is passed › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● doesn't crash when --debug-check is passed › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 + issue1890.js ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● doesn't crash when --debug-check is passed › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: editorconfig/lib/file.js [error] ENOENT: no such file or directory, open 'editorconfig/lib/file.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with --debug-check › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with --debug-check › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 + (stdin) ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with --debug-check › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: ../with-shebang/editorconfig/lib/indent_size=tab.js [error] ENOENT: no such file or directory, open '../with-shebang/editorconfig/lib/indent_size=tab.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● show diff for 2+ error files with --debug-check › (stdout) expect(received).toMatchSnapshot() Snapshot name: `show diff for 2+ error files with --debug-check (stdout) 1` - Snapshot - 0 + Received + 3 + + + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● show diff for 2+ error files with --debug-check › (stderr) expect(received).toMatchSnapshot() Snapshot name: `show diff for 2+ error files with --debug-check (stderr) 1` - Snapshot - 0 + Received + 4 @@ -1,5 +1,9 @@ + [error] Unable to read file: ../with-shebang/editorconfig/repo-root/file.js + [error] ENOENT: no such file or directory, open '../with-shebang/editorconfig/repo-root/file.js' + [error] Unable to read file: ../debug-check/external-config/index.js + [error] ENOENT: no such file or directory, open '../debug-check/external-config/index.js' [error] a.debug-check: prettier(input) !== prettier(prettier(input)) [error] Index: [error] =================================================================== [error] --- [error] +++ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● should not exit non-zero for already prettified code with --debug-check + --check › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● should not exit non-zero for already prettified code with --debug-check + --check › (stdout) expect(received).toMatchSnapshot() Snapshot name: `should not exit non-zero for already prettified code with --debug-check + --check (stdout) 1` - Snapshot - 0 + Received + 1 Checking formatting... + issue-4599.js All matched files use Prettier code style! ↵ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● should not exit non-zero for already prettified code with --debug-check + --check › (stderr) expect(received).toMatchSnapshot() Snapshot name: `should not exit non-zero for already prettified code with --debug-check + --check (stderr) 1` - Snapshot - 0 + Received + 3 + [error] Unable to read file: ../debug-check/filepath/subfolder/file.js + [error] ENOENT: no such file or directory, open '../debug-check/filepath/subfolder/file.js' + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● should not exit non-zero for already prettified code with --debug-check + --list-different › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● should not exit non-zero for already prettified code with --debug-check + --list-different › (stdout) expect(received).toMatchSnapshot() Snapshot name: `should not exit non-zero for already prettified code with --debug-check + --list-different (stdout) 1` - Snapshot - 0 + Received + 5 + + + + + issue-4599.js ↵ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● should not exit non-zero for already prettified code with --debug-check + --list-different › (stderr) expect(received).toMatchSnapshot() Snapshot name: `should not exit non-zero for already prettified code with --debug-check + --list-different (stderr) 1` - Snapshot - 0 + Received + 11 + [error] Unable to read file: ../debug-check/jest/__best-tests__/.file.js + [error] ENOENT: no such file or directory, open '../debug-check/jest/__best-tests__/.file.js' + [error] Unable to read file: ../debug-check/jest/__best-tests__/file.js + [error] ENOENT: no such file or directory, open '../debug-check/jest/__best-tests__/file.js' + [error] Unable to read file: ../debug-check/jest/Component.js + [error] ENOENT: no such file or directory, open '../debug-check/jest/Component.js' + [error] Unable to read file: ../debug-check/jest/Component.test.js + [error] ENOENT: no such file or directory, open '../debug-check/jest/Component.test.js' + [error] Unable to read file: ../debug-check/js/file.js + [error] ENOENT: no such file or directory, open '../debug-check/js/file.js' + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) › 6 snapshots failed. [error] Unable to read file: ../debug-check/js/prettier.config.js [error] ENOENT: no such file or directory, open '../debug-check/js/prettier.config.js' PASS tests/integration/__tests__/piped-output.js (41.239 s) FAIL tests/integration/__tests__/with-node-modules.js (24.767 s) ● ignores node_modules by default › (status) expect(received).toEqual(expected) // deep equality Expected: 1 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● ignores node_modules by default › (stdout) expect(received).toMatchSnapshot() Snapshot name: `ignores node_modules by default (stdout) 1` - Snapshot - 2 + Received + 2 - not_node_modules/file.js - regular-module.js + + ↵ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● ignores node_modules by default › (stderr) expect(received).toMatchSnapshot() Snapshot name: `ignores node_modules by default (stderr) 1` - Snapshot - 0 + Received + 24 + + ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/patterns.js. + + at Object.get babel [as babel] (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:16) + at resolveParser (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) + at normalize (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) + at formatWithCursor2 (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) + at Object.formatWithCursor (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) + [error] other-directory/nested-directory/nested-directory-file.js: TypeError: Cannot read properties of undefined (reading 'babel') + [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) + [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) + [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) + [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) + [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) + [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) + [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) + [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) + [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) + [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) + [error] Unable to read file: ../../../../not_node_modules/file.js + [error] ENOENT: no such file or directory, open '../../../../not_node_modules/file.js' + [error] Unable to read file: ../../../../regular-module.js + [error] ENOENT: no such file or directory, open '../../../../regular-module.js' + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) › 2 snapshots failed. PASS tests/format/handlebars/element-node/jsfmt.spec.js (6.236 s) PASS tests/integration/__tests__/config-invalid.js (41.438 s) PASS tests/integration/__tests__/performance-flags.js (42.356 s) PASS tests/integration/__tests__/invalid-ignore.js (6.461 s) PASS tests/integration/__tests__/stdin-filepath.js (43.952 s) PASS tests/format/js/babel-plugins/jsfmt.spec.js (44.893 s) PASS tests/format/misc/errors/js/optional-chaining/jsfmt.spec.js (7.348 s) PASS tests/format/misc/errors/js/assignment/jsfmt.spec.js (6.591 s) PASS tests/integration/__tests__/resolve-config-file.js FAIL tests/integration/__tests__/plugin-precedence.js (5.995 s) ● json-stringify takes precedence over json for package.json › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● json-stringify takes precedence over json for package.json › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 + { "a": "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" } ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● json-stringify takes precedence over json for package.json › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: no-config/file.js [error] ENOENT: no such file or directory, open 'no-config/file.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) PASS tests/format/js/directives/comments/jsfmt.spec.js (28.807 s) PASS tests/format/misc/errors/js/async-await/jsfmt.spec.js (12.302 s) FAIL tests/integration/__tests__/ignore-relative-path.js (7.446 s) ● support relative paths › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/ignore-relative-path.js:15:6 at Object. (tests/integration/__tests__/ignore-relative-path.js:7:1) ● support relative paths › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● support relative paths › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● support relative paths › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) PASS tests/integration/__tests__/ignore-absolute-path.js (6.054 s) PASS tests/format/misc/errors/js/for-of/jsfmt.spec.js (13.425 s) PASS tests/integration/__tests__/error-on-unmatched-pattern.js (18.688 s) PASS tests/format/js/bom/jsfmt.spec.js (8.441 s) PASS tests/integration/__tests__/ignore-emoji.js (8.312 s) PASS tests/integration/__tests__/loglevel.js (50.824 s) PASS tests/format/yaml/block-literal/jsfmt.spec.js (7.279 s) PASS tests/format/js/import-assertions/jsfmt.spec.js (14.336 s) PASS tests/integration/__tests__/plugin-preprocess.js (5.605 s) PASS tests/format/js/import-assertions/bracket-spacing/jsfmt.spec.js (7.321 s) FAIL tests/integration/__tests__/plugin-virtual-directory.js (5.935 s) ● plugin search should not crash when prettier isn't inside a directory › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● plugin search should not crash when prettier isn't inside a directory › (stdout) expect(received).toEqual(expected) // deep equality Expected: "" Received: " " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● plugin search should not crash when prettier isn't inside a directory › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: ../../plugins/package/file.js [error] ENOENT: no such file or directory, open '../../plugins/package/file.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) PASS tests/format/misc/errors/invalid/jsfmt.spec.js (17.434 s) PASS tests/integration/__tests__/write.js (17.867 s) PASS tests/integration/__tests__/skip-folders.js (10.724 s) PASS tests/integration/__tests__/ignore-vcs-files.js (6.168 s) PASS tests/format/vue/multiparser/jsfmt.spec.js (12.81 s) PASS tests/integration/__tests__/debug-print-comments.js (7.248 s) FAIL tests/integration/__tests__/plugin-extensions.js (6.719 s) ● uses 'extensions' from languages to determine parser › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● uses 'extensions' from languages to determine parser › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 + !contents ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● uses 'extensions' from languages to determine parser › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: a.js [error] ENOENT: no such file or directory, open 'a.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) PASS tests/format/misc/empty/jsfmt.spec.js (23.999 s) PASS tests/format/js/directives/jsfmt.spec.js (21.111 s) PASS tests/integration/__tests__/debug-print-doc.js (6.216 s) PASS tests/integration/__tests__/plugin-flush-line-suffix.js (5.427 s) PASS tests/format/vue/with-plugins/jsfmt.spec.js (7.372 s) PASS tests/format/js/empty/jsfmt.spec.js (18.949 s) PASS tests/format/misc/errors/js/hack-pipeline/jsfmt.spec.js (5.762 s) PASS tests/integration/__tests__/debug-print-ast.js (5.551 s) PASS tests/format/js/decorator-auto-accessors/jsfmt.spec.js (19.673 s) PASS tests/integration/__tests__/cli.js PASS tests/integration/__tests__/schema.js PASS tests/format/misc/errors/typescript/jsfmt.spec.js (9.549 s) PASS tests/format/jsx/deprecated-jsx-bracket-same-line-option/jsfmt.spec.js (15.879 s) PASS tests/integration/__tests__/syntax-error.js (5.925 s) PASS tests/format/html/comments/jsfmt.spec.js (10.611 s) PASS tests/format/js/module-blocks/jsfmt.spec.js (10.194 s) PASS tests/format/flow/quote-props/jsfmt.spec.js (17.044 s) PASS tests/integration/__tests__/arg-parsing.js (65.209 s) PASS tests/format/markdown/wiki-link/jsfmt.spec.js (8.273 s) PASS tests/integration/__tests__/file-info.js (66.383 s) PASS tests/format/html/tags/jsfmt.spec.js (13.566 s) PASS tests/format/js/export-star/jsfmt.spec.js (16.901 s) PASS tests/format/markdown/footnoteDefinition/jsfmt.spec.js (7.622 s) PASS tests/integration/__tests__/with-shebang.js (5.987 s) PASS tests/format/misc/errors/js/import/jsfmt.spec.js (14.823 s) PASS tests/format/typescript/error-recovery/jsfmt.spec.js (12.597 s) PASS tests/format/misc/errors/js/record/jsfmt.spec.js (6.457 s) PASS tests/format/js/shebang/jsfmt.spec.js (15.451 s) FAIL tests/integration/__tests__/plugin-resolution.js (70.148 s) ● --no-plugin-search thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 207 | }); 208 | > 209 | test("--no-plugin-search", async () => { | ^ 210 | async function getParser(args = []) { 211 | const { stdout } = await runPrettier("plugins/automatic", [ 212 | "--file-info=file.foo", at Object. (tests/integration/__tests__/plugin-resolution.js:209:1) ● --no-plugin-search still allow use --plugin Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --no-plugin-search together with --plugin-search-dir Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) PASS tests/format/js/quote-props/jsfmt.spec.js (21.774 s) PASS tests/format/misc/json-unknown-extension/jsfmt.spec.js (5.347 s) PASS tests/format/markdown/table/empty-table/jsfmt.spec.js (5.696 s) PASS tests/format/js/strings/jsfmt.spec.js (23.194 s) PASS tests/format/misc/errors/broken-plugin/jsfmt.spec.js PASS tests/format/vue/custom_block/jsfmt.spec.js (16.434 s) PASS tests/format/yaml/json/trailing-comma/jsfmt.spec.js (5.38 s) PASS tests/format/yaml/flow-sequence/trailing-comma/jsfmt.spec.js (5.21 s) PASS tests/format/js/classes-private-fields/jsfmt.spec.js (14.763 s) PASS tests/format/yaml/flow-mapping/trailing-comma/jsfmt.spec.js (5.314 s) PASS tests/format/js/sloppy-mode/jsfmt.spec.js (19.514 s) PASS tests/format/markdown/list/jsfmt.spec.js (35.757 s) PASS tests/format/json/json/jsfmt.spec.js (11.561 s) PASS tests/integration/__tests__/infer-parser.js (77.648 s) PASS tests/format/yaml/quote/jsfmt.spec.js (5.252 s) PASS tests/format/flow-repo/es_declare_module/flow-typed/jsfmt.spec.js (7.965 s) PASS tests/format/typescript/quote-props/jsfmt.spec.js (10.063 s) PASS tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js (7.76 s) ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/ignore-relative-path.js. at Object.get babel [as babel] (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:16) at resolveParser (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) at normalize (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) at formatWithCursor2 (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) at Object.formatWithCursor (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] level1-glob/shouldNotBeIgnored.js: TypeError: Cannot read properties of undefined (reading 'babel') [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) PASS tests/format/misc/errors/json/json-stringify/jsfmt.spec.js (5.012 s) PASS tests/format/js/eol/jsfmt.spec.js (14.621 s) PASS tests/format/js/tuple/jsfmt.spec.js (8.363 s) PASS tests/format/typescript/end-of-line/jsfmt.spec.js (12.661 s) PASS tests/format/misc/errors/typescript/babel-ts/jsfmt.spec.js (5.7 s) PASS tests/format/js/arrow-call/jsfmt.spec.js (28.646 s) PASS tests/format/js/arrows/newline-before-arrow/jsfmt.spec.js (6.073 s) PASS tests/format/json/with-comment/jsfmt.spec.js (6.666 s) PASS tests/format/typescript/declare/trailing-comma/jsfmt.spec.js (10.156 s) PASS tests/format/js/destructuring-ignore/jsfmt.spec.js (21.087 s) PASS tests/format/js/bind-expressions/jsfmt.spec.js (15.143 s) PASS tests/format/js/export/jsfmt.spec.js (23.998 s) PASS tests/format/typescript/trailing-comma/jsfmt.spec.js (13.018 s) PASS tests/format/typescript/compiler/jsfmt.spec.js (19.93 s) PASS tests/format/js/arrows/semi/jsfmt.spec.js (10.9 s) PASS tests/format/markdown/paragraph/jsfmt.spec.js (10.976 s) PASS tests/format/js/dynamic-import/jsfmt.spec.js (16.865 s) PASS tests/format/js/decorators-export/jsfmt.spec.js (6.397 s) PASS tests/format/js/decorators/class-expression/jsfmt.spec.js (22.021 s) PASS tests/format/flow/object-inexact/jsfmt.spec.js (18.144 s) PASS tests/format/js/regex/jsfmt.spec.js (15.87 s) PASS tests/format/graphql/trailing-comma/jsfmt.spec.js PASS tests/format/js/object-property-ignore/jsfmt.spec.js (25.972 s) PASS tests/format/markdown/broken-plugins/jsfmt.spec.js PASS tests/format/vue/multiparser/unknown/jsfmt.spec.js (6.541 s) PASS tests/format/vue/broken-plugins/jsfmt.spec.js PASS tests/format/js/objects/jsfmt.spec.js (19.147 s) PASS tests/format/js/end-of-line/jsfmt.spec.js (7.926 s) PASS tests/format/js/call/invalid/jsfmt.spec.js (6.27 s) PASS tests/format/markdown/fenced-code-block/jsfmt.spec.js PASS tests/format/markdown/jsx-semi/jsfmt.spec.js (6.429 s) PASS tests/format/misc/errors/js/reserved-word/jsfmt.spec.js PASS tests/format/misc/require-pragma/js/jsfmt.spec.js (18.039 s) PASS tests/format/yaml/plain/jsfmt.spec.js (6.04 s) PASS tests/format/flow/function-parentheses/jsfmt.spec.js (16.358 s) PASS tests/format/typescript/typeparams/consistent/jsfmt.spec.js (16.38 s) PASS tests/format/lwc/lwc/jsfmt.spec.js (5.031 s) PASS tests/format/markdown/link/jsfmt.spec.js (7.102 s) PASS tests/format/typescript/tuple/jsfmt.spec.js (13.847 s) PASS tests/format/typescript/typeparams/empty-parameters-with-arrow-function/jsfmt.spec.js (14.495 s) PASS tests/format/js/multiparser-invalid/jsfmt.spec.js (17.486 s) PASS tests/format/js/trailing-comma/jsfmt.spec.js (34.13 s) PASS tests/format/typescript/arrows/jsfmt.spec.js (13.301 s) PASS tests/format/angular/interpolation/jsfmt.spec.js (5.185 s) PASS tests/format/yaml/flow-sequence/jsfmt.spec.js (10.945 s) PASS tests/format/jsx/last-line/jsfmt.spec.js (15.056 s) PASS tests/format/jsx/single-attribute-per-line/jsfmt.spec.js (15.3 s) PASS tests/format/yaml/flow-mapping/jsfmt.spec.js (10.217 s) PASS tests/format/vue/indent/jsfmt.spec.js (7.116 s) PASS tests/format/js/classes/keyword-property/jsfmt.spec.js (29.485 s) PASS tests/format/typescript/custom/abstract/jsfmt.spec.js (10.562 s) PASS tests/format/typescript/conformance/classes/constructorDeclarations/constructorParameters/jsfmt.spec.js (14.08 s) PASS tests/format/js/identifier/parentheses/jsfmt.spec.js (23.58 s) PASS tests/format/js/template-align/jsfmt.spec.js (18.173 s) PASS tests/format/typescript/test-declarations/jsfmt.spec.js (13.869 s) PASS tests/format/js/rest/jsfmt.spec.js (9.903 s) PASS tests/format/markdown/linkReference/jsfmt.spec.js (6.14 s) PASS tests/format/angular/bracket-same-line/jsfmt.spec.js (8.712 s) PASS tests/format/html/bracket-same-line/jsfmt.spec.js (7.665 s) PASS tests/format/js/bracket-spacing/jsfmt.spec.js (16.672 s) PASS tests/format/handlebars/single-quote-option/jsfmt.spec.js (6.581 s) PASS tests/format/vue/bracket-same-line/jsfmt.spec.js (9.123 s) PASS tests/format/typescript/interface/long-type-parameters/jsfmt.spec.js (9.995 s) PASS tests/format/jsx/comments/jsfmt.spec.js (18.832 s) PASS tests/format/flow/no-semi/jsfmt.spec.js (14.161 s) PASS tests/format/js/destructuring-private-fields/jsfmt.spec.js (12.088 s) PASS tests/format/flow/this-annotation/parentheses/jsfmt.spec.js (8.166 s) [error] Unable to read file: ../../plugins/extensions/b.js [error] ENOENT: no such file or directory, open '../../plugins/extensions/b.js' PASS tests/format/misc/embedded_language_formatting/in-markdown/jsfmt.spec.js (6.825 s) PASS tests/format/js/ignore/semi/jsfmt.spec.js (17.259 s) PASS tests/format/typescript/class/jsfmt.spec.js (13.916 s) PASS tests/format/typescript/comments-2/jsfmt.spec.js (19.743 s) PASS tests/format/js/tab-width/jsfmt.spec.js (18.935 s) PASS tests/format/js/import/jsfmt.spec.js (22.741 s) PASS tests/format/js/decorators/jsfmt.spec.js (13.633 s) PASS tests/format/js/trailing-whitespace/jsfmt.spec.js (14.872 s) PASS tests/format/markdown/markdown/jsfmt.spec.js (30.383 s) PASS tests/format/jsx/attr-element/jsfmt.spec.js PASS tests/format/typescript/conformance/classes/classDeclarations/classAbstractKeyword/jsfmt.spec.js (16.998 s) PASS tests/format/js/literal/jsfmt.spec.js (13.65 s) PASS tests/format/js/object-property-comment/jsfmt.spec.js (9.598 s) PASS tests/format/js/classes/top-level-super/jsfmt.spec.js (10.675 s) PASS tests/format/js/decorator-comments/jsfmt.spec.js (12.04 s) PASS tests/format/flow/parameter-with-type/jsfmt.spec.js (10.661 s) PASS tests/format/misc/embedded_language_formatting/in-javascript/jsfmt.spec.js (9.511 s) PASS tests/format/misc/embedded_language_formatting/in-html/jsfmt.spec.js (8.626 s) PASS tests/format/html/single-attribute-per-line/jsfmt.spec.js PASS tests/format/graphql/bracket-spacing/jsfmt.spec.js PASS tests/format/markdown/liquid/jsfmt.spec.js PASS tests/format/typescript/enum/jsfmt.spec.js (10.227 s) PASS tests/format/typescript/export/jsfmt.spec.js (11.349 s) PASS tests/format/jsx/jsx/jsfmt.spec.js (84.495 s) PASS tests/format/misc/embedded_language_formatting/in-vue/jsfmt.spec.js (9.61 s) PASS tests/format/typescript/angular-component-examples/jsfmt.spec.js (13.411 s) PASS tests/format/markdown/long-table/jsfmt.spec.js (6.831 s) PASS tests/format/flow/generic/jsfmt.spec.js (17.869 s) PASS tests/format/vue/vue/jsfmt.spec.js (35.732 s) PASS tests/format/typescript/import-type/jsfmt.spec.js (10.316 s) PASS tests/format/typescript/keywords/jsfmt.spec.js (12.85 s) PASS tests/format/typescript/conformance/types/functions/jsfmt.spec.js (18.269 s) PASS tests/format/js/quotes/jsfmt.spec.js (17.121 s) PASS tests/format/angular/angular/jsfmt.spec.js (81.43 s) PASS tests/format/js/v8_intrinsic/jsfmt.spec.js (9.086 s) PASS tests/format/js/throw_expressions/jsfmt.spec.js (7.127 s) PASS tests/format/js/export-default/export-default-from/jsfmt.spec.js (6.492 s) PASS tests/format/vue/single-attribute-per-line/jsfmt.spec.js (10.7 s) PASS tests/format/js/partial-application/jsfmt.spec.js (6.816 s) PASS tests/format/flow/type-declarations/jsfmt.spec.js (13.478 s) PASS tests/format/js/in/jsfmt.spec.js (16.599 s) PASS tests/format/js/export-default/escaped/jsfmt.spec.js (7.329 s) PASS tests/format/typescript/interface/jsfmt.spec.js (16.525 s) PASS tests/format/js/comments-pipeline-own-line/jsfmt.spec.js (8.514 s) PASS tests/format/js/do/jsfmt.spec.js (9.205 s) PASS tests/format/js/record/jsfmt.spec.js (10.685 s) PASS tests/format/js/arrows-bind/jsfmt.spec.js (7.291 s) PASS tests/format/js/async-do-expressions/jsfmt.spec.js (7.968 s) PASS tests/format/handlebars/sub-expression/jsfmt.spec.js (5.496 s) PASS tests/format/js/pipeline-operator/jsfmt.spec.js (12.459 s) PASS tests/format/scss/configuration/jsfmt.spec.js PASS tests/format/handlebars/concat-statement/jsfmt.spec.js (6.507 s) PASS tests/format/yaml/spec/jsfmt.spec.js (28.781 s) PASS tests/format/handlebars/mustache-statement/jsfmt.spec.js (6.701 s) PASS tests/format/js/multiparser-html/jsfmt.spec.js (56.165 s) PASS tests/format/scss/trailing-comma/jsfmt.spec.js (7.371 s) PASS tests/format/scss/map/jsfmt.spec.js (6.653 s) PASS tests/format/scss/quotes/jsfmt.spec.js PASS tests/format/typescript/no-semi/jsfmt.spec.js (11.754 s) PASS tests/format/typescript/abstract-property/jsfmt.spec.js (9.877 s) PASS tests/format/typescript/arrow/jsfmt.spec.js (11.916 s) PASS tests/format/yaml/block-folded/jsfmt.spec.js (7.311 s) PASS tests/format/html/handlebars-venerable/jsfmt.spec.js (6.227 s) PASS tests/format/misc/typescript-only/jsfmt.spec.js (11.133 s) PASS tests/format/css/quotes/jsfmt.spec.js (5.313 s) PASS tests/format/typescript/intersection/jsfmt.spec.js (13.228 s) PASS tests/format/flow/object-order/jsfmt.spec.js (8.722 s) PASS tests/format/js/no-semi/jsfmt.spec.js (29.896 s) PASS tests/format/typescript/decorators/jsfmt.spec.js (15.395 s) PASS tests/format/markdown/indentation/jsfmt.spec.js PASS tests/format/css/attribute/jsfmt.spec.js (6.613 s) PASS tests/format/yaml/sequence/jsfmt.spec.js (6.02 s) PASS tests/format/js/test-declarations/jsfmt.spec.js (54.331 s) PASS tests/format/js/cursor/require-pragma/jsfmt.spec.js (6.947 s) PASS tests/format/js/functional-composition/jsfmt.spec.js (38.756 s) PASS tests/format/yaml/mapping/jsfmt.spec.js (8.297 s) PASS tests/format/typescript/type-arguments-bit-shift-left-like/jsfmt.spec.js (11.793 s) PASS tests/format/js/comments/jsfmt.spec.js (98.876 s) [error] Unable to read file: ../../plugins/virtualDirectory/rc-json/file.js [error] ENOENT: no such file or directory, open '../../plugins/virtualDirectory/rc-json/file.js' PASS tests/format/js/private-in/jsfmt.spec.js (6.681 s) PASS tests/format/typescript/optional-variance/jsfmt.spec.js (12.308 s) PASS tests/format/flow/ternary/jsfmt.spec.js (10.411 s) PASS tests/format/misc/embedded_language_formatting/mdx/jsfmt.spec.js PASS tests/format/js/invalid-code/jsfmt.spec.js (6.468 s) PASS tests/format/mdx/embedded-language-formatting/jsfmt.spec.js (5.586 s) PASS tests/format/js/ternaries/jsfmt.spec.js (98.842 s) PASS tests/format/scss/scss/jsfmt.spec.js (16.603 s) PASS tests/format/typescript/satisfies-operators/jsfmt.spec.js (22.075 s) PASS tests/format/mdx/mdx/jsfmt.spec.js (11.993 s) PASS tests/format/js/module-string-names/jsfmt.spec.js (7.36 s) PASS tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js (5.91 s) PASS tests/format/misc/errors/js/regex-v-u-flags/jsfmt.spec.js (5.254 s) PASS tests/format/js/class-static-block/jsfmt.spec.js (6.904 s) PASS tests/format/typescript/namespace/jsfmt.spec.js (9.583 s) PASS tests/format/typescript/conformance/parser/ecmascript5/Statements/jsfmt.spec.js (9.656 s) PASS tests/format/markdown/multiparser-json/jsfmt.spec.js (5.425 s) PASS tests/format/js/arrows/jsfmt.spec.js (68.34 s) PASS tests/format/misc/errors/js/literal/jsfmt.spec.js (6.03 s) PASS tests/format/markdown/prose-wrap-preserve/jsfmt.spec.js (5.63 s) PASS tests/integration/__tests__/help-options.js (134.572 s) PASS tests/format/misc/require-pragma/markdown/jsfmt.spec.js (5.677 s) PASS tests/format/markdown/word/jsfmt.spec.js (5.011 s) PASS tests/format/markdown/yaml/jsfmt.spec.js (5.138 s) PASS tests/format/markdown/toml/jsfmt.spec.js PASS tests/format/misc/errors/js/object/jsfmt.spec.js (7.159 s) PASS tests/format/flow/optional-indexed-access/jsfmt.spec.js (9.694 s) PASS tests/format/flow/indexed-access/jsfmt.spec.js (9.738 s) PASS tests/format/js/reserved-word/jsfmt.spec.js (6.643 s) PASS tests/format/flow/this-annotation/jsfmt.spec.js (11.86 s) PASS tests/format/markdown/multiparser-js/jsfmt.spec.js (7.074 s) PASS tests/format/flow/enums/jsfmt.spec.js (12.208 s) PASS tests/format/flow/private-class-fields/jsfmt.spec.js (7.605 s) PASS tests/format/js/object-colon-bug/jsfmt.spec.js (14.177 s) PASS tests/format/markdown/thematicBreak/jsfmt.spec.js (5.514 s) PASS tests/format/markdown/image/jsfmt.spec.js PASS tests/format/markdown/strong/jsfmt.spec.js (5.442 s) PASS tests/format/markdown/inlineCode/jsfmt.spec.js (5.108 s) PASS tests/format/markdown/imageReference/jsfmt.spec.js PASS tests/format/markdown/table/jsfmt.spec.js (5.849 s) PASS tests/format/js/identifier/for-of/jsfmt.spec.js (13.232 s) PASS tests/format/markdown/footnoteReference/jsfmt.spec.js PASS tests/format/misc/require-pragma/graphql/jsfmt.spec.js PASS tests/format/markdown/definition/jsfmt.spec.js PASS tests/format/markdown/heading/jsfmt.spec.js (5.226 s) PASS tests/format/markdown/splitCjkText/jsfmt.spec.js (7.051 s) PASS tests/format/markdown/emphasis/jsfmt.spec.js (5.054 s) PASS tests/format/misc/insert-pragma/js/jsfmt.spec.js (19.731 s) PASS tests/format/markdown/ignore/jsfmt.spec.js (5.906 s) PASS tests/format/markdown/delete/jsfmt.spec.js (5.287 s) PASS tests/format/markdown/html/jsfmt.spec.js (6.01 s) PASS tests/format/markdown/break/jsfmt.spec.js (5.206 s) PASS tests/format/markdown/footnote/jsfmt.spec.js (5.965 s) PASS tests/format/json/json5-as-json-with-trailing-commas/jsfmt.spec.js (5.482 s) PASS tests/format/misc/require-pragma/json5/jsfmt.spec.js PASS tests/format/flow/type-parameters/jsfmt.spec.js (16.557 s) ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/config-resolution.js. at Object.get babel [as babel] (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:16) at resolveParser (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) at normalize (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) at formatWithCursor2 (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) at Object.formatWithCursor (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] rc-toml/file.js: TypeError: Cannot read properties of undefined (reading 'babel') [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) PASS tests/format/js/method-chain/print-width-120/jsfmt.spec.js (19.444 s) PASS tests/format/misc/insert-pragma/markdown/jsfmt.spec.js (6.427 s) PASS tests/format/misc/insert-pragma/graphql/jsfmt.spec.js (5.604 s) PASS tests/format/markdown/blockquote/jsfmt.spec.js (6.864 s) PASS tests/format/misc/require-pragma/json/jsfmt.spec.js PASS tests/format/yaml/require-pragma/jsfmt.spec.js PASS tests/format/misc/insert-pragma/json5/jsfmt.spec.js PASS tests/format/yaml/insert-pragma/jsfmt.spec.js PASS tests/format/misc/require-pragma/html/jsfmt.spec.js (5.136 s) PASS tests/format/misc/require-pragma/mdx/jsfmt.spec.js PASS tests/format/misc/require-pragma/vue/jsfmt.spec.js (5.645 s) PASS tests/format/misc/insert-pragma/html/jsfmt.spec.js PASS tests/format/misc/insert-pragma/json/jsfmt.spec.js PASS tests/format/flow/enums-unknown-members/jsfmt.spec.js (7.539 s) PASS tests/format/misc/require-pragma/css/jsfmt.spec.js (5.611 s) PASS tests/format/markdown/code/jsfmt.spec.js (10.821 s) PASS tests/format/typescript/typeparams/print-width-120/jsfmt.spec.js (10.094 s) PASS tests/format/misc/insert-pragma/vue/jsfmt.spec.js (5.758 s) PASS tests/format/misc/insert-pragma/css/jsfmt.spec.js (5.315 s) PASS tests/format/typescript/semi/jsfmt.spec.js (8.819 s) PASS tests/format/typescript/nosemi/jsfmt.spec.js (9.561 s) PASS tests/format/typescript/method-chain/jsfmt.spec.js (14.762 s) PASS tests/format/typescript/last-argument-expansion/jsfmt.spec.js (15.23 s) PASS tests/format/js/multiparser-markdown/jsfmt.spec.js (18.4 s) PASS tests/format/typescript/multiparser-css/jsfmt.spec.js (16.398 s) PASS tests/format/typescript/function/jsfmt.spec.js (14.954 s) PASS tests/format/js/with/jsfmt.spec.js (13.797 s) PASS tests/format/typescript/functional-composition/jsfmt.spec.js (17.189 s) PASS tests/format/jsx/escape/jsfmt.spec.js (15.208 s) PASS tests/format/jsx/spread/jsfmt.spec.js (16.525 s) PASS tests/format/typescript/classes/jsfmt.spec.js (17.684 s) PASS tests/format/jsx/newlines/jsfmt.spec.js (16.853 s) PASS tests/format/js/update-expression/jsfmt.spec.js (15.317 s) PASS tests/format/jsx/fragment/jsfmt.spec.js (16.845 s) PASS tests/format/typescript/class-comment/jsfmt.spec.js (18.835 s) PASS tests/format/typescript/interface2/jsfmt.spec.js (19.726 s) PASS tests/format/js/unary/jsfmt.spec.js (16.378 s) PASS tests/format/jsx/split-attrs/jsfmt.spec.js (19.297 s) PASS tests/format/js/unicode/jsfmt.spec.js (17.109 s) PASS tests/format/js/while/jsfmt.spec.js (17.979 s) PASS tests/format/jsx/ignore/jsfmt.spec.js (18.648 s) PASS tests/format/js/sequence-parentheses/jsfmt.spec.js (13.703 s) PASS tests/format/js/try/jsfmt.spec.js (18.337 s) PASS tests/format/js/spread/jsfmt.spec.js (16.629 s) PASS tests/format/js/variable_declarator/jsfmt.spec.js (20.094 s) PASS tests/format/js/sequence-break/jsfmt.spec.js (16.354 s) PASS tests/format/js/throw_statement/jsfmt.spec.js (21.684 s) PASS tests/format/js/switch/jsfmt.spec.js (21.229 s) PASS tests/format/markdown/spec/jsfmt.spec.js (36.771 s) PASS tests/format/js/optional-catch-binding/jsfmt.spec.js (13.142 s) PASS tests/format/js/unary-expression/jsfmt.spec.js (26.666 s) PASS tests/format/js/require/jsfmt.spec.js (16.598 s) PASS tests/format/js/require-amd/jsfmt.spec.js (17.593 s) PASS tests/format/js/return/jsfmt.spec.js (19.183 s) PASS tests/format/js/multiparser-html/language-comment/jsfmt.spec.js (14.908 s) PASS tests/format/js/objects/assignment-expression/jsfmt.spec.js (16.641 s) PASS tests/format/js/literal-numeric-separator/jsfmt.spec.js (14.15 s) PASS tests/format/js/nullish-coalescing/jsfmt.spec.js (16.888 s) PASS tests/format/js/line/jsfmt.spec.js (15.209 s) PASS tests/format/js/line-suffix-boundary/jsfmt.spec.js (15.088 s) PASS tests/format/js/import-meta/jsfmt.spec.js (14.942 s) PASS tests/format/js/logical_expressions/jsfmt.spec.js (17.976 s) PASS tests/format/js/object-prop-break-in/jsfmt.spec.js (21.099 s) PASS tests/format/js/new-expression/jsfmt.spec.js (20.526 s) PASS tests/format/js/label/jsfmt.spec.js (16.167 s) PASS tests/format/js/member/jsfmt.spec.js (19.837 s) PASS tests/format/js/logical-assignment/jsfmt.spec.js (19.946 s) PASS tests/format/js/generator/jsfmt.spec.js (16.747 s) PASS tests/format/js/performance/jsfmt.spec.js (26.804 s) PASS tests/format/js/optional-chaining/jsfmt.spec.js (26.434 s) PASS tests/format/js/function-first-param/jsfmt.spec.js (16.066 s) PASS tests/format/js/function/jsfmt.spec.js (17.488 s) PASS tests/format/js/template-literals/jsfmt.spec.js (39.796 s) PASS tests/format/js/for-of/jsfmt.spec.js (14.813 s) PASS tests/format/js/for-await/jsfmt.spec.js (16.013 s) PASS tests/format/js/expression_statement/jsfmt.spec.js (14.326 s) PASS tests/format/js/preserve-line/jsfmt.spec.js (31.519 s) ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/cache.js. at Object.get json-stringify [as json-stringify] (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30348:16) at resolveParser (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) at normalize (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) at formatWithCursor2 (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) at Object.formatWithCursor (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] package.json: TypeError: Cannot read properties of undefined (reading 'json-stringify') [error] at Object.get json-stringify [as json-stringify] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30348:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) PASS tests/format/js/if/jsfmt.spec.js (24.703 s) PASS tests/format/js/computed-props/jsfmt.spec.js (14.142 s) PASS tests/format/js/empty-statement/jsfmt.spec.js (16.535 s) PASS tests/format/js/export-default/jsfmt.spec.js (18.096 s) PASS tests/format/js/es6modules/jsfmt.spec.js (18.72 s) PASS tests/format/handlebars/block-statement/print-width-5/jsfmt.spec.js (5.65 s) PASS tests/format/js/comments/flow-types/jsfmt.spec.js (15.127 s) PASS tests/format/js/call/no-argument/jsfmt.spec.js (13.87 s) PASS tests/format/js/destructuring/jsfmt.spec.js (18.64 s) PASS tests/format/js/empty-paren-comment/jsfmt.spec.js (19.37 s) PASS tests/format/js/first-argument-expansion/jsfmt.spec.js (22.714 s) PASS tests/format/handlebars/whitespace/jsfmt.spec.js (6.372 s) PASS tests/format/js/range/jsfmt.spec.js (39.527 s) PASS tests/format/js/big-int/jsfmt.spec.js (13.923 s) PASS tests/format/js/class-extends/jsfmt.spec.js (18.458 s) PASS tests/format/js/class-comment/jsfmt.spec.js (18.055 s) PASS tests/format/js/binary_math/jsfmt.spec.js (17.086 s) PASS tests/format/misc/errors/babel-flow/jsfmt.spec.js PASS tests/format/typescript/template-literal-types/jsfmt.spec.js (9.405 s) PASS tests/format/js/for/jsfmt.spec.js (29.208 s) PASS tests/format/js/assignment-expression/jsfmt.spec.js (13.472 s) PASS tests/format/css/front-matter/jsfmt.spec.js (5.006 s) PASS tests/format/js/array-spread/jsfmt.spec.js (13.431 s) PASS tests/format/typescript/key-remapping-in-mapped-types/jsfmt.spec.js (9.351 s) PASS tests/format/typescript/static-blocks/jsfmt.spec.js (10.305 s) PASS tests/format/misc/errors/invalid-typescript-decorators/jsfmt.spec.js (10.124 s) PASS tests/format/js/classes/jsfmt.spec.js (24.606 s) PASS tests/format/jsx/binary-expressions/jsfmt.spec.js (10.266 s) PASS tests/format/js/top-level-await/jsfmt.spec.js (10.531 s) PASS tests/format/js/return-outside-function/jsfmt.spec.js (10.095 s) PASS tests/format/js/numeric-separators/jsfmt.spec.js (10.936 s) PASS tests/format/json/range/json-stringify/jsfmt.spec.js PASS tests/format/flow/variance/jsfmt.spec.js (7.885 s) PASS tests/format/js/non-strict/jsfmt.spec.js (11.875 s) PASS tests/format/flow/type-alias/jsfmt.spec.js (9.348 s) PASS tests/format/js/yield/jsfmt.spec.js (14.132 s) PASS tests/format/flow/all/jsfmt.spec.js (8.023 s) PASS tests/format/js/break-calls/jsfmt.spec.js (27.594 s) PASS tests/format/js/async/jsfmt.spec.js (24.59 s) PASS tests/format/js/assignment-comments/jsfmt.spec.js (23.366 s) PASS tests/format/typescript/typeof/jsfmt.spec.js (13.137 s) PASS tests/format/flow/assignments/jsfmt.spec.js (10.667 s) PASS tests/format/jsx/namespace/jsfmt.spec.js (7.777 s) PASS tests/format/flow-repo/def_site_variance/jsfmt.spec.js (10.041 s) PASS tests/format/jsx/multiline-assign/jsfmt.spec.js (13.857 s) PASS tests/format/flow/comments/jsfmt.spec.js (13.576 s) PASS tests/format/jsx/significant-space/jsfmt.spec.js (15.151 s) PASS tests/format/js/newline/jsfmt.spec.js (9.624 s) PASS tests/format/js/multiparser-text/jsfmt.spec.js (10.027 s) PASS tests/format/jsx/stateless-arrow-fn/jsfmt.spec.js (16.839 s) PASS tests/format/flow/type-spread/jsfmt.spec.js (7.953 s) PASS tests/format/flow/typeapp-call/jsfmt.spec.js (9.564 s) PASS tests/format/flow/union/jsfmt.spec.js (10.668 s) PASS tests/format/flow/literal/jsfmt.spec.js (7.83 s) PASS tests/format/flow/type-cast/jsfmt.spec.js (8.861 s) PASS tests/format/js/conditional/jsfmt.spec.js (40.735 s) PASS tests/format/flow/object-property-comment/jsfmt.spec.js (9.035 s) PASS tests/format/flow/template/jsfmt.spec.js (9.234 s) PASS tests/format/flow/maybe/jsfmt.spec.js (8.748 s) PASS tests/format/js/multiparser-css/jsfmt.spec.js (58.645 s) PASS tests/format/flow/jsx/jsfmt.spec.js (8.555 s) PASS tests/format/flow/mixins/jsfmt.spec.js (10.213 s) PASS tests/format/js/ignore/jsfmt.spec.js (13.577 s) PASS tests/format/flow/method/jsfmt.spec.js (10.698 s) PASS tests/format/flow/internal-slot/jsfmt.spec.js (8.907 s) PASS tests/format/js/function-single-destructuring/jsfmt.spec.js (14.072 s) PASS tests/format/js/multiparser-comments/jsfmt.spec.js (15.503 s) PASS tests/format/js/template/jsfmt.spec.js (18.066 s) PASS tests/format/flow/interface-types/jsfmt.spec.js (8.736 s) PASS tests/format/js/assignment/jsfmt.spec.js (37.61 s) PASS tests/format/jsx/text-wrap/jsfmt.spec.js (23.731 s) PASS tests/format/flow/ignore/jsfmt.spec.js (9.292 s) PASS tests/format/flow/function-type-param/jsfmt.spec.js (8.714 s) PASS tests/format/flow/flow-intersection/jsfmt.spec.js (8.446 s) PASS tests/format/flow/export/jsfmt.spec.js (7.941 s) PASS tests/format/js/binary-expressions/jsfmt.spec.js (40.742 s) PASS tests/format/flow/declare-function/jsfmt.spec.js (7.909 s) PASS tests/format/flow/function-single-destructuring/jsfmt.spec.js (10.461 s) PASS tests/format/flow/declare-class/jsfmt.spec.js (8.342 s) PASS tests/format/flow/annotation/jsfmt.spec.js (7.882 s) PASS tests/format/js/arrays/jsfmt.spec.js (38.945 s) PASS tests/format/typescript/unknown/jsfmt.spec.js (8.461 s) PASS tests/format/typescript/unique-symbol/jsfmt.spec.js (8.603 s) PASS tests/format/js/method-chain/jsfmt.spec.js (67.313 s) PASS tests/format/typescript/typeof-this/jsfmt.spec.js (9.137 s) PASS tests/format/typescript/type-member-get-set/jsfmt.spec.js (8.432 s) PASS tests/format/typescript/type-only-module-specifiers/jsfmt.spec.js (8.79 s) PASS tests/format/typescript/rest/jsfmt.spec.js (7.947 s) PASS tests/format/typescript/webhost/jsfmt.spec.js (11.228 s) PASS tests/format/typescript/symbol/jsfmt.spec.js (8.586 s) PASS tests/format/typescript/template-literals/jsfmt.spec.js (9.249 s) PASS tests/format/typescript/ternaries/jsfmt.spec.js (9.753 s) PASS tests/format/typescript/readonly/jsfmt.spec.js (8.522 s) PASS tests/format/typescript/rest-type/jsfmt.spec.js (9.468 s) PASS tests/format/typescript/type-alias/jsfmt.spec.js (11.413 s) PASS tests/format/typescript/private-fields-in-in/jsfmt.spec.js (8.999 s) PASS tests/format/typescript/union/jsfmt.spec.js (13.252 s) PASS tests/format/typescript/predicate-types/jsfmt.spec.js (8.796 s) PASS tests/format/typescript/prettier-ignore/jsfmt.spec.js (9.418 s) PASS tests/format/typescript/range/jsfmt.spec.js (9.625 s) PASS tests/format/typescript/tsx/jsfmt.spec.js (12.126 s) PASS tests/format/typescript/optional-type/jsfmt.spec.js (8.597 s) PASS tests/format/js/last-argument-expansion/jsfmt.spec.js (26.91 s) PASS tests/format/typescript/override-modifiers/jsfmt.spec.js (9.094 s) PASS tests/format/typescript/optional-method/jsfmt.spec.js (8.644 s) PASS tests/format/typescript/optional-call/jsfmt.spec.js (8.399 s) PASS tests/format/typescript/never/jsfmt.spec.js (8.018 s) PASS tests/format/typescript/new/jsfmt.spec.js (9.135 s) PASS tests/format/typescript/module/jsfmt.spec.js (8.966 s) PASS tests/format/typescript/typeparams/jsfmt.spec.js (17.316 s) PASS tests/format/typescript/literal/jsfmt.spec.js (8.149 s) PASS tests/format/typescript/intrinsic/jsfmt.spec.js (8.151 s) PASS tests/format/typescript/non-null/jsfmt.spec.js (11.67 s) PASS tests/format/typescript/keyof/jsfmt.spec.js (8.589 s) PASS tests/format/typescript/method/jsfmt.spec.js (10.224 s) PASS tests/format/typescript/mapped-type/jsfmt.spec.js (9.801 s) PASS tests/format/typescript/index-signature/jsfmt.spec.js (8.422 s) PASS tests/format/typescript/infer-extends/jsfmt.spec.js (8.68 s) PASS tests/format/typescript/keyword-types/jsfmt.spec.js (10.626 s) PASS tests/format/typescript/instantiation-expression/jsfmt.spec.js (9.639 s) PASS tests/format/typescript/import-require/jsfmt.spec.js (8.502 s) PASS tests/format/typescript/import-export/jsfmt.spec.js (8.958 s) ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/plugin-resolution.js. at Object.get json [as json] (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30342:16) at resolveParser (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) at normalize (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) at formatWithCursor2 (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) at ../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12 [error] Cannot read properties of undefined (reading 'json') PASS tests/format/typescript/destructuring/jsfmt.spec.js (8.091 s) PASS tests/format/typescript/function-type/jsfmt.spec.js (9.211 s) PASS tests/format/typescript/export-default/jsfmt.spec.js (8.95 s) PASS tests/format/typescript/decorator-auto-accessors/jsfmt.spec.js (8.546 s) PASS tests/format/typescript/custom/stability/jsfmt.spec.js (8.316 s) PASS tests/format/typescript/definite/jsfmt.spec.js (9.045 s) PASS tests/format/typescript/custom/declare/jsfmt.spec.js (8.099 s) PASS tests/format/typescript/generic/jsfmt.spec.js (11.079 s) PASS tests/format/typescript/custom/new/jsfmt.spec.js (8.909 s) PASS tests/format/typescript/custom/module/jsfmt.spec.js (8.86 s) PASS tests/format/typescript/custom/modifiers/jsfmt.spec.js (9.021 s) ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/with-config-precedence.js. at Object.get babel [as babel] (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:16) at resolveParser (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) at normalize (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) at formatWithCursor2 (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) at Object.formatWithCursor (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] rc-toml/file.js: TypeError: Cannot read properties of undefined (reading 'babel') [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) PASS tests/format/typescript/custom/computedProperties/jsfmt.spec.js (8.257 s) PASS tests/format/typescript/conformance/types/variableDeclarator/jsfmt.spec.js (7.838 s) PASS tests/format/typescript/custom/call/jsfmt.spec.js (8.065 s) PASS tests/format/typescript/custom/typeParameters/jsfmt.spec.js (10.571 s) PASS tests/format/typescript/declare/jsfmt.spec.js (11.339 s) PASS tests/format/typescript/conformance/types/undefined/jsfmt.spec.js (8.206 s) PASS tests/format/typescript/decorators-ts/jsfmt.spec.js (12.673 s) PASS tests/format/typescript/conformance/types/typeReference/jsfmt.spec.js (8.135 s) PASS tests/format/typescript/conformance/types/typeParameter/jsfmt.spec.js (8.099 s) PASS tests/format/typescript/conformance/types/typeOperator/jsfmt.spec.js (8.323 s) PASS tests/format/typescript/conformance/types/thisType/jsfmt.spec.js (8.202 s) PASS tests/format/typescript/conformance/types/tuple/emptyTuples/jsfmt.spec.js (8.362 s) PASS tests/format/typescript/conformance/types/symbol/jsfmt.spec.js (8.15 s) PASS tests/format/typescript/conformance/types/nonNullExpression/jsfmt.spec.js (8.163 s) PASS tests/format/typescript/conformance/types/typeParameters/typeParameterLists/jsfmt.spec.js (10.676 s) PASS tests/format/typescript/conformance/types/namespaceExportDeclaration/jsfmt.spec.js (7.724 s) PASS tests/format/typescript/conformance/types/parameterProperty/jsfmt.spec.js (8.82 s) PASS tests/format/typescript/conformance/types/moduleDeclaration/jsfmt.spec.js (8.393 s) PASS tests/format/typescript/conformance/types/never/jsfmt.spec.js (8.859 s) PASS tests/format/typescript/conformance/types/methodSignature/jsfmt.spec.js (8.312 s) PASS tests/format/typescript/conformance/types/mappedType/jsfmt.spec.js (8.052 s) PASS tests/format/typescript/conformance/types/lastTypeNode/jsfmt.spec.js (8.234 s) PASS tests/format/typescript/conformance/types/intersectionType/jsfmt.spec.js (8.555 s) PASS tests/format/typescript/conformance/types/importEqualsDeclaration/jsfmt.spec.js (7.936 s) PASS tests/format/typescript/conformance/types/enumDeclaration/jsfmt.spec.js (7.847 s) PASS tests/format/typescript/conformance/types/indexedAccesType/jsfmt.spec.js (8.261 s) PASS tests/format/typescript/conformance/types/constructorType/jsfmt.spec.js (7.994 s) PASS tests/format/typescript/conformance/types/interfaceDeclaration/jsfmt.spec.js (8.061 s) PASS tests/format/typescript/conformance/types/constKeyword/jsfmt.spec.js (7.797 s) PASS tests/format/typescript/conformance/types/firstTypeNode/jsfmt.spec.js (8.742 s) [error] rc-yaml/file.js: TypeError: Cannot read properties of undefined (reading 'babel') [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) PASS tests/format/typescript/conformance/types/tuple/jsfmt.spec.js (14.852 s) PASS tests/format/typescript/conformance/types/ambient/jsfmt.spec.js (9.046 s) PASS tests/format/typescript/conformance/types/abstractKeyword/jsfmt.spec.js (8.353 s) PASS tests/format/typescript/conformance/types/any/jsfmt.spec.js (9.608 s) PASS tests/format/typescript/conformance/expressions/asOperator/jsfmt.spec.js (7.983 s) PASS tests/format/typescript/conformance/types/union/jsfmt.spec.js (16.983 s) PASS tests/format/typescript/conformance/interfaces/interfaceDeclarations/jsfmt.spec.js (8.484 s) PASS tests/format/typescript/conformance/es6/templates/jsfmt.spec.js (8.318 s) PASS tests/format/typescript/conformance/comments/jsfmt.spec.js (7.68 s) PASS tests/format/typescript/conformance/expressions/functionCalls/jsfmt.spec.js (10.127 s) PASS tests/format/typescript/conformance/es6/Symbols/jsfmt.spec.js (8.655 s) PASS tests/format/typescript/conformance/declarationEmit/typePredicates/jsfmt.spec.js (8.546 s) PASS tests/format/typescript/conformance/classes/classDeclarations/jsfmt.spec.js (8.348 s) PASS tests/format/typescript/conformance/internalModules/importDeclarations/jsfmt.spec.js (11.381 s) PASS tests/format/typescript/catch-clause/jsfmt.spec.js (8.392 s) PASS tests/format/flow/comments/babel-only/jsfmt.spec.js PASS tests/format/misc/errors/babel-ts/jsfmt.spec.js PASS tests/format/markdown/multiparser-css/jsfmt.spec.js PASS tests/format/typescript/conformance/classes/classDeclarations/classHeritageSpecification/jsfmt.spec.js (10.148 s) PASS tests/format/markdown/math/jsfmt.spec.js PASS tests/format/typescript/conformance/ambient/jsfmt.spec.js (9.366 s) PASS tests/format/markdown/linkReference/case-and-space/jsfmt.spec.js PASS tests/format/markdown/front-matter/jsfmt.spec.js PASS tests/format/misc/typescript-babel-only/jsfmt.spec.js (5.848 s) PASS tests/format/misc/errors/graphql/jsfmt.spec.js PASS tests/format/typescript/bigint/jsfmt.spec.js (9.026 s) PASS tests/format/js/comments/html-like/jsfmt.spec.js PASS tests/format/typescript/break-calls/jsfmt.spec.js (9.946 s) PASS tests/format/typescript/assert/jsfmt.spec.js (9.238 s) PASS tests/format/typescript/array/jsfmt.spec.js (8.82 s) PASS tests/format/typescript/abstract-construct-types/jsfmt.spec.js (8.431 s) PASS tests/format/typescript/ambient/jsfmt.spec.js (8.601 s) PASS tests/format/handlebars/prettier-ignore/jsfmt.spec.js PASS tests/format/typescript/abstract-class/jsfmt.spec.js (8.011 s) PASS tests/format/handlebars/last-line/jsfmt.spec.js PASS tests/format/handlebars/text-wrap/jsfmt.spec.js (5.867 s) PASS tests/format/handlebars/newline/jsfmt.spec.js (5.711 s) PASS tests/format/graphql/type-extension-definition/jsfmt.spec.js PASS tests/format/graphql/variable-definitions/jsfmt.spec.js PASS tests/format/graphql/union-types/jsfmt.spec.js PASS tests/format/handlebars/comment/jsfmt.spec.js PASS tests/format/typescript/cast/jsfmt.spec.js (13.645 s) PASS tests/format/graphql/scalar/jsfmt.spec.js PASS tests/format/graphql/schema/jsfmt.spec.js PASS tests/format/handlebars/escape/jsfmt.spec.js (5.387 s) PASS tests/format/graphql/string/jsfmt.spec.js PASS tests/format/typescript/conditional-types/jsfmt.spec.js (14.131 s) PASS tests/format/handlebars/basics/jsfmt.spec.js (5.183 s) PASS tests/format/graphql/range/jsfmt.spec.js PASS tests/format/graphql/prettier-ignore/jsfmt.spec.js PASS tests/format/typescript/argument-expansion/jsfmt.spec.js (12.673 s) PASS tests/format/typescript/conformance/classes/jsfmt.spec.js (16.089 s) PASS tests/format/graphql/lists/jsfmt.spec.js PASS tests/format/graphql/objects/jsfmt.spec.js PASS tests/format/graphql/object-type-def/jsfmt.spec.js PASS tests/format/handlebars/attr-node/jsfmt.spec.js (5.985 s) PASS tests/format/typescript/comments/jsfmt.spec.js (15.314 s) PASS tests/format/graphql/newline/jsfmt.spec.js PASS tests/format/graphql/hello/jsfmt.spec.js PASS tests/format/graphql/kitchen-sink/jsfmt.spec.js PASS tests/format/typescript/assignment/jsfmt.spec.js (14.442 s) PASS tests/format/graphql/interface/jsfmt.spec.js PASS tests/format/graphql/fragments/jsfmt.spec.js PASS tests/format/handlebars/block-statement/jsfmt.spec.js (7.849 s) PASS tests/format/typescript/as/jsfmt.spec.js (15.501 s) PASS tests/format/graphql/fragment-variables/jsfmt.spec.js PASS tests/format/graphql/fields/jsfmt.spec.js PASS tests/format/graphql/enum/jsfmt.spec.js PASS tests/format/graphql/directives/jsfmt.spec.js PASS tests/format/graphql/directive-decl/jsfmt.spec.js PASS tests/format/graphql/deprecation/jsfmt.spec.js PASS tests/format/graphql/arguments/jsfmt.spec.js PASS tests/format/graphql/comments/jsfmt.spec.js PASS tests/format/graphql/definitions/jsfmt.spec.js PASS tests/format/angular/shorthand/jsfmt.spec.js PASS tests/format/angular/upper-case/jsfmt.spec.js (5.119 s) PASS tests/format/angular/self-closing/jsfmt.spec.js (5.099 s) PASS tests/format/jsx/do/jsfmt.spec.js (5.105 s) PASS tests/format/json/range/json5/jsfmt.spec.js PASS tests/format/misc/flow-babel-only/jsfmt.spec.js (5.644 s) PASS tests/format/yaml/prettier-ignore/jsfmt.spec.js PASS tests/format/yaml/directive/jsfmt.spec.js PASS tests/format/yaml/ansible/jsfmt.spec.js PASS tests/format/yaml/inline-extend-syntax/jsfmt.spec.js (5.343 s) PASS tests/format/yaml/alias/jsfmt.spec.js PASS tests/format/yaml/document/jsfmt.spec.js (5.276 s) PASS tests/format/yaml/home-assistant/jsfmt.spec.js (5.543 s) PASS tests/format/yaml/root/jsfmt.spec.js (5.978 s) PASS tests/format/stylefmt-repo/inline-comment/jsfmt.spec.js PASS tests/format/scss/variables/jsfmt.spec.js (5.138 s) PASS tests/format/stylefmt-repo/readme/jsfmt.spec.js (6.048 s) PASS tests/format/scss/no-semicolon/jsfmt.spec.js PASS tests/format/yaml/comment/jsfmt.spec.js (6.922 s) PASS tests/format/misc/babel-redirect-to-babel-flow/jsfmt.spec.js (8.308 s) PASS tests/format/misc/errors/yaml/jsfmt.spec.js PASS tests/format/scss/yaml/jsfmt.spec.js (6.33 s) PASS tests/format/scss/map/function-argument/jsfmt.spec.js (5.515 s) PASS tests/format/scss/at-rule/jsfmt.spec.js PASS tests/format/misc/errors/less/jsfmt.spec.js PASS tests/format/mjml/mjml/jsfmt.spec.js PASS tests/format/less/no-semicolon/jsfmt.spec.js PASS tests/format/less/important/jsfmt.spec.js PASS tests/format/less/yaml/jsfmt.spec.js (5.619 s) PASS tests/format/scss/case/jsfmt.spec.js (6.739 s) PASS tests/format/less/function-selector/jsfmt.spec.js PASS tests/format/less/empty/jsfmt.spec.js PASS tests/format/scss/parens/jsfmt.spec.js (8.555 s) PASS tests/format/html/text/jsfmt.spec.js PASS tests/format/less/parens/jsfmt.spec.js (7.231 s) PASS tests/integration/__tests__/bundle.js (299.111 s) PASS tests/format/scss/comments/jsfmt.spec.js (8.799 s) PASS tests/format/html/srcset/jsfmt.spec.js PASS tests/format/less/comments/jsfmt.spec.js (6.633 s) PASS tests/format/misc/errors/flow/jsfmt.spec.js (8.312 s) PASS tests/format/json/range/jsfmt.spec.js (6.589 s) PASS tests/format/html/yaml/jsfmt.spec.js (5.826 s) PASS tests/format/html/symbol_entities/jsfmt.spec.js (5.277 s) PASS tests/format/html/next_empty_line/jsfmt.spec.js PASS tests/format/less/case/jsfmt.spec.js (7.335 s) PASS tests/format/html/multiparser/unknown/jsfmt.spec.js PASS tests/format/html/prettier_ignore/jsfmt.spec.js PASS tests/format/html/svg/jsfmt.spec.js (5.876 s) PASS tests/format/jsx/template/jsfmt.spec.js (8.121 s) PASS tests/format/html/magic_comments/jsfmt.spec.js PASS tests/format/html/multiparser/css/jsfmt.spec.js (5.164 s) PASS tests/format/js/comments-closure-typecast/jsfmt.spec.js (14.553 s) PASS tests/format/html/multiparser/markdown/jsfmt.spec.js (6.009 s) PASS tests/format/html/interpolation/jsfmt.spec.js PASS tests/format/html/multiparser/js/jsfmt.spec.js (6.257 s) PASS tests/format/js/multiparser-graphql/jsfmt.spec.js (15.162 s) PASS tests/format/jsx/fbt/jsfmt.spec.js (9.093 s) PASS tests/format/html/script/jsfmt.spec.js (7.729 s) PASS tests/format/less/less/jsfmt.spec.js (10.967 s) PASS tests/format/html/doctype_declarations/jsfmt.spec.js (6.309 s) PASS tests/format/html/front-matter/jsfmt.spec.js (6.578 s) PASS tests/format/html/aurelia/jsfmt.spec.js (5.074 s) PASS tests/format/html/multiparser/ts/jsfmt.spec.js (8.575 s) PASS tests/format/html/cdata/jsfmt.spec.js (5.279 s) PASS tests/format/html/case/jsfmt.spec.js (5.851 s) PASS tests/format/html/css/jsfmt.spec.js (7.281 s) PASS tests/format/html/attributes/jsfmt.spec.js (8.045 s) PASS tests/format/flow/proto-props/jsfmt.spec.js (7.475 s) PASS tests/format/flow/union_intersection/jsfmt.spec.js (8.087 s) PASS tests/format/flow/optional-type-name/jsfmt.spec.js (7.669 s) PASS tests/format/flow/exact-object/jsfmt.spec.js (6.657 s) PASS tests/format/flow/object-comment/jsfmt.spec.js (7.669 s) PASS tests/format/flow/import/jsfmt.spec.js (7.602 s) PASS tests/format/flow/import-type-specifier/jsfmt.spec.js (7.799 s) PASS tests/format/flow/class-field/jsfmt.spec.js (6.899 s) PASS tests/format/flow/range/jsfmt.spec.js (8.472 s) PASS tests/format/flow/intersection/jsfmt.spec.js (8.163 s) PASS tests/format/flow/implements/jsfmt.spec.js (7.947 s) PASS tests/format/flow/break-calls/jsfmt.spec.js (7.599 s) PASS tests/format/flow-repo/x/jsfmt.spec.js (7.523 s) PASS tests/format/flow-repo/window/jsfmt.spec.js (7.65 s) PASS tests/format/flow/array-union/jsfmt.spec.js (7.805 s) PASS tests/format/flow/array-comments/jsfmt.spec.js (7.643 s) PASS tests/format/flow-repo/vim_emacs_errors/jsfmt.spec.js (6.941 s) PASS tests/format/html/basics/jsfmt.spec.js (11.267 s) PASS tests/format/flow/await/jsfmt.spec.js (8.602 s) PASS tests/format/flow-repo/weakmode/jsfmt.spec.js (7.786 s) PASS tests/format/flow-repo/while/jsfmt.spec.js (8.26 s) PASS tests/format/html/js/jsfmt.spec.js (13.563 s) PASS tests/format/flow/return-arrow/jsfmt.spec.js (11.3 s) PASS tests/format/flow-repo/value/jsfmt.spec.js (7.399 s) PASS tests/format/flow-repo/unused_function_args/jsfmt.spec.js (8.322 s) PASS tests/format/flow-repo/union_new/lib/jsfmt.spec.js (8.218 s) PASS tests/format/flow-repo/unreachable/jsfmt.spec.js (8.787 s) PASS tests/format/flow-repo/type_param_variance2/jsfmt.spec.js (7.443 s) PASS tests/format/flow-repo/unicode/jsfmt.spec.js (8.327 s) PASS tests/format/flow-repo/unchecked_node_module_vs_lib/jsfmt.spec.js (8.366 s) PASS tests/format/flow-repo/unchecked_haste_module_vs_lib/jsfmt.spec.js (8.256 s) PASS tests/format/flow-repo/typeapp_perf/jsfmt.spec.js (8.295 s) PASS tests/format/flow-repo/typecast/jsfmt.spec.js (8.545 s) PASS tests/format/flow-repo/typeof/jsfmt.spec.js (8.756 s) PASS tests/format/flow-repo/unary/jsfmt.spec.js (8.804 s) PASS tests/format/flow-repo/undefined/jsfmt.spec.js (9.611 s) PASS tests/format/flow-repo/type_param_variance2/libs/jsfmt.spec.js (9.422 s) PASS tests/format/flow-repo/type_param_variance/jsfmt.spec.js (9.36 s) PASS tests/format/flow-repo/type_args_nonstrict/jsfmt.spec.js (8.763 s) PASS tests/format/flow-repo/throw/jsfmt.spec.js (7.476 s) PASS tests/format/flow-repo/traits/jsfmt.spec.js (8.14 s) PASS tests/format/flow-repo/type_args_strict/jsfmt.spec.js (9.225 s) PASS tests/format/flow-repo/type_only_vars/jsfmt.spec.js (9.62 s) PASS tests/format/flow-repo/type_param_defaults/jsfmt.spec.js (10.551 s) PASS tests/format/flow-repo/this_type/lib/jsfmt.spec.js (8.559 s) PASS tests/format/flow-repo/type-destructors/jsfmt.spec.js (9.95 s) PASS tests/format/flow-repo/traces/jsfmt.spec.js (9.457 s) PASS tests/format/flow-repo/type_param_scope/jsfmt.spec.js (11.424 s) PASS tests/format/flow-repo/tuples/jsfmt.spec.js (9.976 s) PASS tests/format/flow-repo/this_ctor/jsfmt.spec.js (8.503 s) PASS tests/format/flow-repo/try/jsfmt.spec.js (10.876 s) PASS tests/format/flow-repo/type-at-pos/jsfmt.spec.js (11.723 s) PASS tests/format/flow-repo/union_new/jsfmt.spec.js (18.726 s) PASS tests/format/flow-repo/this/jsfmt.spec.js (10.366 s) PASS tests/format/flow-repo/template/jsfmt.spec.js (7.848 s) PASS tests/format/flow-repo/symlink/jsfmt.spec.js (8.732 s) PASS tests/format/flow-repo/this_type/jsfmt.spec.js (12.901 s) PASS tests/format/flow-repo/union-intersection/jsfmt.spec.js (19.968 s) PASS tests/format/flow-repo/suppress_traces/jsfmt.spec.js (8.839 s) PASS tests/format/flow-repo/symbol/jsfmt.spec.js (9.221 s) PASS tests/format/flow-repo/suggest/jsfmt.spec.js (8.203 s) PASS tests/format/flow-repo/suppress_incremental/jsfmt.spec.js (9.731 s) PASS tests/format/flow-repo/suppress/jsfmt.spec.js (9.282 s) PASS tests/format/flow-repo/tagged-unions/jsfmt.spec.js (10.701 s) PASS tests/format/flow-repo/strict_requires/jsfmt.spec.js (8.319 s) PASS tests/format/flow-repo/union/jsfmt.spec.js (22.129 s) PASS tests/format/flow-repo/static_overload/lib/jsfmt.spec.js (7.77 s) PASS tests/format/flow-repo/switch/jsfmt.spec.js (10.502 s) PASS tests/format/flow-repo/strict/jsfmt.spec.js (8.985 s) PASS tests/format/flow-repo/statics/jsfmt.spec.js (9.28 s) PASS tests/format/flow-repo/structural_subtyping/jsfmt.spec.js (10.126 s) PASS tests/format/flow-repo/static_overload/jsfmt.spec.js (8.882 s) PASS tests/format/flow-repo/shape/jsfmt.spec.js (8.421 s) PASS tests/format/flow-repo/sketchy_null_default/jsfmt.spec.js (8.902 s) PASS tests/format/flow-repo/super/jsfmt.spec.js (11.319 s) PASS tests/format/flow-repo/simple_arrays/jsfmt.spec.js (8.98 s) PASS tests/format/flow-repo/sealed/jsfmt.spec.js (8.302 s) PASS tests/format/flow-repo/taint/jsfmt.spec.js (13.882 s) PASS tests/format/flow-repo/seal/jsfmt.spec.js (8.556 s) PASS tests/format/flow-repo/sealed_objects/jsfmt.spec.js (9.561 s) PASS tests/format/flow-repo/spread/jsfmt.spec.js (11.061 s) PASS tests/format/flow-repo/singleton/jsfmt.spec.js (10.716 s) PASS tests/format/flow-repo/return/jsfmt.spec.js (8.155 s) PASS tests/format/flow-repo/return_new/jsfmt.spec.js (8.848 s) PASS tests/format/flow-repo/regexp/jsfmt.spec.js (7.389 s) PASS tests/format/flow-repo/replace/jsfmt.spec.js (7.508 s) PASS tests/format/flow-repo/reflection/jsfmt.spec.js (7.819 s) PASS tests/format/flow-repo/require/jsfmt.spec.js (8.856 s) PASS tests/format/flow-repo/requireLazy/jsfmt.spec.js (10.047 s) PASS tests/format/flow-repo/recheck/tmp4f/jsfmt.spec.js (7.708 s) PASS tests/format/flow-repo/recheck/tmp2e/jsfmt.spec.js (7.38 s) PASS tests/format/flow-repo/recheck/tmpk/jsfmt.spec.js (8.5 s) PASS tests/format/flow-repo/recheck/tmplibk/jsfmt.spec.js (8.566 s) PASS tests/format/flow-repo/recheck/tmp3f/jsfmt.spec.js (8.183 s) PASS tests/format/flow-repo/recheck/tmp1h/jsfmt.spec.js (6.648 s) PASS tests/format/flow-repo/recheck/tmp3e/jsfmt.spec.js (8.625 s) PASS tests/format/flow-repo/recheck/tmp2f/jsfmt.spec.js (8.494 s) PASS tests/format/flow-repo/recheck/tmp2c/jsfmt.spec.js (7.574 s) PASS tests/format/flow-repo/record/jsfmt.spec.js (9.441 s) PASS tests/format/flow-repo/recheck/tmp2b/jsfmt.spec.js (7.441 s) PASS tests/format/flow-repo/recheck/tmp1j/jsfmt.spec.js (7.444 s) PASS tests/format/flow-repo/recheck/tmp2a/jsfmt.spec.js (7.871 s) PASS tests/format/flow-repo/recheck/tmp1g/jsfmt.spec.js (7.754 s) PASS tests/format/flow-repo/recheck/tmp1i/jsfmt.spec.js (8.711 s) PASS tests/format/flow-repo/recheck/tmp1d/jsfmt.spec.js (7.35 s) PASS tests/format/flow-repo/recheck/tmp1c/jsfmt.spec.js (7.483 s) PASS tests/format/flow-repo/recheck/tmp1f/jsfmt.spec.js (8.656 s) PASS tests/format/flow-repo/recheck/tmp1e/jsfmt.spec.js (9.018 s) PASS tests/format/flow-repo/recheck/tmp1b/jsfmt.spec.js (8.298 s) PASS tests/format/flow-repo/recheck-haste/tmp2A/jsfmt.spec.js (7.508 s) PASS tests/format/flow-repo/recheck/tmp1a/jsfmt.spec.js (8.375 s) PASS tests/format/flow-repo/recheck-haste/tmp1A/jsfmt.spec.js (7.215 s) PASS tests/format/flow-repo/recheck-haste/dir1B/jsfmt.spec.js (6.674 s) PASS tests/format/flow-repo/recheck-haste/jsfmt.spec.js (7.746 s) PASS tests/format/flow-repo/recheck/jsfmt.spec.js (11.209 s) PASS tests/format/flow-repo/react_functional/jsfmt.spec.js (8.166 s) PASS tests/format/flow-repo/qualified/jsfmt.spec.js (7.587 s) PASS tests/format/flow-repo/pure_component/jsfmt.spec.js (7.737 s) PASS tests/format/flow-repo/private/jsfmt.spec.js (7.753 s) PASS tests/format/flow-repo/refi/jsfmt.spec.js (17.458 s) PASS tests/format/flow-repo/react_modules/jsfmt.spec.js (10.026 s) PASS tests/format/flow-repo/poly_overload/decls/jsfmt.spec.js (8.098 s) PASS tests/format/flow-repo/poly_class_export/jsfmt.spec.js (8.232 s) PASS tests/format/flow-repo/parse_error_node/jsfmt.spec.js (7.102 s) PASS tests/format/flow-repo/predicates-parsing/jsfmt.spec.js (9.711 s) PASS tests/format/flow-repo/rec/jsfmt.spec.js (12.057 s) PASS tests/format/flow-repo/private_class_fields/jsfmt.spec.js (10.063 s) PASS tests/format/flow-repo/parse_error_haste/jsfmt.spec.js (8.153 s) PASS tests/format/flow-repo/overload/lib/jsfmt.spec.js (7.378 s) PASS tests/format/flow-repo/parse/jsfmt.spec.js (7.881 s) PASS tests/format/flow-repo/path/jsfmt.spec.js (8.768 s) PASS tests/format/flow-repo/predicates-inferred/jsfmt.spec.js (10.963 s) PASS tests/format/flow-repo/optional_chaining/jsfmt.spec.js (7.657 s) PASS tests/format/flow-repo/predicates-declared/jsfmt.spec.js (11.675 s) PASS tests/format/flow-repo/predicates-abstract/jsfmt.spec.js (11.573 s) PASS tests/format/flow-repo/poly/jsfmt.spec.js (10.813 s) PASS tests/format/flow-repo/plsummit/jsfmt.spec.js (10.367 s) PASS tests/format/flow-repo/refinements/jsfmt.spec.js (22.806 s) PASS tests/format/flow-repo/promises/jsfmt.spec.js (13.113 s) PASS tests/format/flow-repo/overload/jsfmt.spec.js (9.686 s) PASS tests/format/flow-repo/objmap/jsfmt.spec.js (8.631 s) PASS tests/format/flow-repo/type-printer/jsfmt.spec.js (40.053 s) PASS tests/format/flow-repo/optional_props/jsfmt.spec.js (10.152 s) PASS tests/format/flow-repo/object_annot/jsfmt.spec.js (7.271 s) PASS tests/format/flow-repo/object_is/jsfmt.spec.js (9.065 s) PASS tests/format/flow-repo/object_freeze/jsfmt.spec.js (9.222 s) PASS tests/format/flow-repo/object_assign/jsfmt.spec.js (9.702 s) PASS tests/format/flow-repo/node_tests/url/jsfmt.spec.js (7.594 s) PASS tests/format/flow-repo/object-method/jsfmt.spec.js (9.322 s) PASS tests/format/flow-repo/number_constants/jsfmt.spec.js (8.628 s) PASS tests/format/flow-repo/objects/jsfmt.spec.js (10.568 s) PASS tests/format/flow-repo/react/jsfmt.spec.js (18.428 s) PASS tests/format/flow-repo/optional/jsfmt.spec.js (13.404 s) PASS tests/format/flow-repo/node_tests/timers/jsfmt.spec.js (7.971 s) PASS tests/format/flow-repo/nullable/jsfmt.spec.js (8.449 s) PASS tests/format/flow-repo/node_tests/path_node_modules_without_main/jsfmt.spec.js (7.039 s) [error] rc-yaml/file.js: TypeError: Cannot read properties of undefined (reading 'babel') [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) PASS tests/format/flow-repo/node_tests/path_package/jsfmt.spec.js (7.424 s) PASS tests/format/flow-repo/node_tests/package_file_node_modules/foo/jsfmt.spec.js (7.246 s) PASS tests/format/flow-repo/node_tests/stream/jsfmt.spec.js (8.752 s) PASS tests/format/flow-repo/node_tests/path_node_modules_with_short_main/jsfmt.spec.js (7.568 s) PASS tests/format/flow-repo/node_tests/process/jsfmt.spec.js (8.604 s) PASS tests/format/flow-repo/node_tests/package_file/bar_lib/jsfmt.spec.js (6.851 s) PASS tests/format/flow-repo/node_tests/json_file/package2/jsfmt.spec.js (7.022 s) PASS tests/format/flow-repo/node_tests/path_node_modules/jsfmt.spec.js (7.954 s) PASS tests/format/flow-repo/node_tests/package_file/jsfmt.spec.js (7.421 s) PASS tests/format/flow-repo/object_api/jsfmt.spec.js (11.894 s) PASS tests/format/flow-repo/node_tests/json_file/jsfmt.spec.js (7.779 s) PASS tests/format/flow-repo/node_tests/os/jsfmt.spec.js (8.391 s) PASS tests/format/flow-repo/node_tests/basic_package/bar_lib/jsfmt.spec.js (6.794 s) PASS tests/format/flow-repo/node_tests/basic_package/jsfmt.spec.js (7.02 s) PASS tests/format/flow-repo/node_tests/fs/jsfmt.spec.js (8.525 s) PASS tests/format/flow-repo/node_tests/basic_node_modules_with_path/jsfmt.spec.js (6.643 s) PASS tests/format/flow-repo/node_tests/crypto/jsfmt.spec.js (9.145 s) PASS tests/format/flow-repo/node_haste/ws/jsfmt.spec.js PASS tests/format/flow-repo/node_tests/buffer/jsfmt.spec.js (9.236 s) PASS tests/format/flow-repo/node_tests/child_process/jsfmt.spec.js (9.484 s) PASS tests/format/flow-repo/node_haste/external/_d3/jsfmt.spec.js PASS tests/format/flow-repo/node_tests/basic_node_modules/jsfmt.spec.js (7.076 s) PASS tests/format/flow-repo/node_tests/basic_file/jsfmt.spec.js (7.356 s) PASS tests/format/flow-repo/node_tests/basic/jsfmt.spec.js (6.59 s) PASS tests/format/flow-repo/node_tests/assert/jsfmt.spec.js (6.64 s) PASS tests/format/flow-repo/node_modules_without_json/jsfmt.spec.js (6.942 s) PASS tests/format/flow-repo/node_modules_with_symlinks/root/symlink_lib/jsfmt.spec.js (6.921 s) PASS tests/format/flow-repo/node_modules_with_symlinks/symlink_lib_outside_root/jsfmt.spec.js (7.103 s) PASS tests/format/flow-repo/node_haste/ws/test/jsfmt.spec.js (7.085 s) PASS tests/format/flow-repo/node_haste/jsfmt.spec.js (7.085 s) PASS tests/format/flow-repo/new_react/fakelib/jsfmt.spec.js (7.142 s) PASS tests/format/flow-repo/name_prop/jsfmt.spec.js (7.072 s) PASS tests/format/flow-repo/multiflow_with_flowlib/jsfmt.spec.js (7.275 s) PASS tests/format/flow-repo/node_haste/foo/bar/jsfmt.spec.js (8.475 s) PASS tests/format/flow-repo/node_modules_with_symlinks/root/jsfmt.spec.js (8.926 s) PASS tests/format/flow-repo/more_statics/jsfmt.spec.js (7.249 s) PASS tests/format/flow-repo/namespace/jsfmt.spec.js (8.065 s) PASS tests/format/flow-repo/more_generics/jsfmt.spec.js (7.565 s) PASS tests/format/flow-repo/module_use_strict/jsfmt.spec.js (6.476 s) PASS tests/format/flow-repo/more_classes/jsfmt.spec.js (7.938 s) PASS tests/format/flow-repo/more_annot/jsfmt.spec.js (7.906 s) PASS tests/format/flow-repo/modules/jsfmt.spec.js (7.625 s) PASS tests/format/flow-repo/modified_lib/jsfmt.spec.js (6.469 s) PASS tests/format/flow-repo/more_react/jsfmt.spec.js (9.686 s) PASS tests/format/flow-repo/module_redirect/jsfmt.spec.js (7.287 s) PASS tests/format/flow-repo/more_path/jsfmt.spec.js (8.983 s) PASS tests/format/flow-repo/modified_lib/lib/jsfmt.spec.js (6.741 s) PASS tests/format/flow-repo/module_not_found_errors/src/jsfmt.spec.js (6.992 s) PASS tests/format/flow-repo/multiflow/jsfmt.spec.js (11.017 s) PASS tests/format/flow-repo/match_failure/jsfmt.spec.js (7.554 s) PASS tests/format/flow-repo/malformed_code/jsfmt.spec.js (7.397 s) PASS tests/format/flow-repo/missing_annotation/jsfmt.spec.js (8.42 s) PASS tests/format/flow-repo/method_properties/jsfmt.spec.js (7.944 s) PASS tests/format/flow-repo/loners/jsfmt.spec.js (7.413 s) PASS tests/format/flow-repo/librec/lib/B/jsfmt.spec.js (7.212 s) PASS tests/format/flow-repo/new_react/jsfmt.spec.js (13.957 s) PASS tests/format/flow-repo/librec/jsfmt.spec.js (6.715 s) PASS tests/format/flow-repo/librec/lib/A/jsfmt.spec.js (6.931 s) PASS tests/format/flow-repo/misc/jsfmt.spec.js (9.767 s) PASS tests/format/flow-repo/locals/jsfmt.spec.js (8.591 s) PASS tests/format/flow-repo/new_spread/jsfmt.spec.js (14.817 s) PASS tests/format/flow-repo/liberr/jsfmt.spec.js (6.921 s) PASS tests/format/flow-repo/liberr/libs/jsfmt.spec.js (7.162 s) PASS tests/format/flow-repo/libflow-typed/jsfmt.spec.js (7.452 s) PASS tests/format/flow-repo/literal/jsfmt.spec.js (9.167 s) PASS tests/format/flow-repo/libflow-typed/flow-typed/jsfmt.spec.js (7.445 s) PASS tests/format/flow-repo/libdef_ignored_module/lib/jsfmt.spec.js (7.445 s) PASS tests/format/flow-repo/libdef_ignored_module/jsfmt.spec.js (6.877 s) PASS tests/format/flow-repo/lib_interfaces/declarations/jsfmt.spec.js (6.938 s) PASS tests/format/flow-repo/logical/jsfmt.spec.js (11.316 s) PASS tests/format/flow-repo/libconfig/jsfmt.spec.js (7.336 s) PASS tests/format/flow-repo/lib/jsfmt.spec.js (7.512 s) PASS tests/format/flow-repo/keyvalue/jsfmt.spec.js (7.005 s) PASS tests/format/flow-repo/jsx_intrinsics.custom/lib/jsfmt.spec.js (7.137 s) PASS tests/format/flow-repo/last_duplicate_property_wins/jsfmt.spec.js (8.536 s) PASS tests/format/flow-repo/jsx_intrinsics.custom/jsfmt.spec.js (8.02 s) PASS tests/format/flow-repo/jsx_intrinsics.builtin/jsfmt.spec.js (8.31 s) PASS tests/format/flow-repo/keys/jsfmt.spec.js (8.722 s) PASS tests/format/flow-repo/iter/jsfmt.spec.js (7.812 s) PASS tests/format/flow-repo/issues-11/jsfmt.spec.js (7.233 s) PASS tests/format/flow-repo/integration/jsfmt.spec.js (6.731 s) PASS tests/format/flow-repo/intersection/lib/jsfmt.spec.js (7.309 s) PASS tests/format/flow-repo/incremental_cycle_break/tmp1/jsfmt.spec.js PASS tests/format/flow-repo/incremental_mixed_naming_cycle/tmp1/jsfmt.spec.js (6.664 s) PASS tests/format/flow-repo/incremental_path/dir/jsfmt.spec.js (6.914 s) PASS tests/format/flow-repo/iterable/jsfmt.spec.js (10.571 s) PASS tests/format/flow-repo/incremental_non_flow_move/jsfmt.spec.js (7.061 s) PASS tests/format/flow-repo/intersection/jsfmt.spec.js (8.614 s) PASS tests/format/flow-repo/incremental_haste_name_reducers_duplicate/jsfmt.spec.js (6.463 s) PASS tests/format/flow-repo/incremental_json/jsfmt.spec.js (6.832 s) PASS tests/format/flow-repo/incremental_haste_blacklist/jsfmt.spec.js (6.85 s) PASS tests/format/flow-repo/incremental_duplicate_delete/jsfmt.spec.js (6.778 s) PASS tests/format/flow-repo/indexer/jsfmt.spec.js (8.234 s) PASS tests/format/flow-repo/interface/jsfmt.spec.js (9.535 s) PASS tests/format/flow-repo/instanceof/jsfmt.spec.js (8.993 s) PASS tests/format/flow-repo/incremental_cycle_break/jsfmt.spec.js (6.704 s) PASS tests/format/flow-repo/incremental_delete/jsfmt.spec.js (7.918 s) PASS tests/format/flow-repo/incremental_mixed_naming_cycle/jsfmt.spec.js (8.94 s) PASS tests/format/flow-repo/incremental_cycle/tmp2/jsfmt.spec.js (6.747 s) PASS tests/format/flow-repo/incremental_cycle/tmp3/jsfmt.spec.js (6.898 s) PASS tests/format/flow-repo/incremental_basic/tmp2/jsfmt.spec.js (6.428 s) PASS tests/format/flow-repo/init/jsfmt.spec.js (10.624 s) PASS tests/format/flow-repo/incremental_cycle/tmp1/jsfmt.spec.js (7.447 s) PASS tests/format/flow-repo/incremental_basic/tmp3/jsfmt.spec.js (7.091 s) PASS tests/format/flow-repo/incremental_cycle/jsfmt.spec.js (7.314 s) PASS tests/format/flow-repo/include/included/jsfmt.spec.js (6.305 s) PASS tests/format/flow-repo/incremental_basic/jsfmt.spec.js (7.393 s) PASS tests/format/flow-repo/incremental_basic/tmp1/jsfmt.spec.js (7.544 s) PASS tests/format/flow-repo/include/foo/batman/jsfmt.spec.js (6.718 s) PASS tests/format/flow-repo/incremental/jsfmt.spec.js (7.723 s) PASS tests/format/flow-repo/include_suppressed/jsfmt.spec.js (7.483 s) PASS tests/format/flow-repo/implements/jsfmt.spec.js (7.673 s) PASS tests/format/flow-repo/haste_use_name_reducers/dir1/jsfmt.spec.js (6.717 s) PASS tests/format/flow-repo/immutable_methods/jsfmt.spec.js (7.227 s) PASS tests/format/flow-repo/ignore_package/jsfmt.spec.js (7.319 s) PASS tests/format/flow-repo/haste_use_name_reducers/jsfmt.spec.js (7.323 s) PASS tests/format/flow-repo/haste_cycle/models/jsfmt.spec.js (6.861 s) PASS tests/format/flow-repo/haste_cycle/jsfmt.spec.js (6.945 s) PASS tests/format/flow-repo/import_type/jsfmt.spec.js (9.391 s) PASS tests/format/flow-repo/import_typeof/jsfmt.spec.js (9.636 s) PASS tests/format/flow-repo/haste_name_reducers_defaults/jsfmt.spec.js (7.864 s) PASS tests/format/flow-repo/haste_dupe/jsfmt.spec.js (7.79 s) PASS tests/format/flow-repo/haste_use_name_reducers/dir2/jsfmt.spec.js (8.243 s) PASS tests/format/flow-repo/get-imports/jsfmt.spec.js (6.745 s) PASS tests/format/flow-repo/get-def2/lib/jsfmt.spec.js (7.064 s) PASS tests/format/flow-repo/get-def/helpers/jsfmt.spec.js (6.615 s) PASS tests/format/flow-repo/getters_and_setters_disabled/jsfmt.spec.js (8.107 s) PASS tests/format/flow-repo/geolocation/jsfmt.spec.js (7.567 s) PASS tests/format/flow-repo/funrec/jsfmt.spec.js (6.918 s) PASS tests/format/flow-repo/get-def/jsfmt.spec.js (8.627 s) PASS tests/format/flow-repo/get-def2/jsfmt.spec.js (9.023 s) PASS tests/format/flow-repo/forof/jsfmt.spec.js (7.632 s) PASS tests/format/flow-repo/generics/jsfmt.spec.js (8.49 s) PASS tests/format/flow-repo/flow_ast.template_strings/jsfmt.spec.js (6.681 s) PASS tests/format/flow-repo/focus-check/jsfmt.spec.js (7.027 s) PASS tests/format/flow-repo/getters_and_setters_enabled/jsfmt.spec.js (11.955 s) PASS tests/format/flow-repo/fixpoint/jsfmt.spec.js (7.854 s) PASS tests/format/flow-repo/for/jsfmt.spec.js (8.791 s) PASS tests/format/flow-repo/facebook_fbt_some/jsfmt.spec.js (6.581 s) PASS tests/format/flow-repo/find-module/jsfmt.spec.js (8.152 s) PASS tests/format/flow-repo/facebook_fbt_some/flow-typed/jsfmt.spec.js (7.197 s) PASS tests/format/flow-repo/facebook_fbt_none/jsfmt.spec.js (7.092 s) PASS tests/format/flow-repo/extensions/jsfmt.spec.js (6.921 s) PASS tests/format/flow-repo/export_default/lib/jsfmt.spec.js (7.383 s) PASS tests/format/flow-repo/esproposal_decorators.ignore/jsfmt.spec.js (6.976 s) PASS tests/format/flow-repo/facebookisms/jsfmt.spec.js (8.809 s) PASS tests/format/flow-repo/esproposal_export_star_as.warn/jsfmt.spec.js (7.623 s) PASS tests/format/flow-repo/export_type/jsfmt.spec.js (8.109 s) PASS tests/format/flow-repo/esproposal_decorators.warn/jsfmt.spec.js (7.467 s) PASS tests/format/flow-repo/esproposal_class_static_fields.ignore/jsfmt.spec.js (7.023 s) PASS tests/format/flow-repo/esproposal_class_static_fields.warn/jsfmt.spec.js (7.347 s) PASS tests/format/flow-repo/esproposal_class_instance_fields.warn/jsfmt.spec.js (7.131 s) PASS tests/format/flow-repo/esproposal_export_star_as.ignore/jsfmt.spec.js (8.012 s) PASS tests/format/flow-repo/export_default/jsfmt.spec.js (8.427 s) PASS tests/format/flow-repo/esproposal_export_star_as.enable/jsfmt.spec.js (7.974 s) PASS tests/format/flow-repo/generators/jsfmt.spec.js (13.567 s) PASS tests/format/flow-repo/function/jsfmt.spec.js (13.767 s) PASS tests/format/flow-repo/esproposal_class_instance_fields.ignore/jsfmt.spec.js (7.477 s) PASS tests/format/flow-repo/fetch/jsfmt.spec.js (11.741 s) PASS tests/format/flow-repo/error_messages/jsfmt.spec.js (6.776 s) PASS tests/format/flow-repo/equals/jsfmt.spec.js (6.841 s) PASS tests/format/flow-repo/es_declare_module/jsfmt.spec.js (7.878 s) PASS tests/format/flow-repo/enumerror/jsfmt.spec.js (7.487 s) PASS tests/format/flow-repo/encaps/jsfmt.spec.js (7.38 s) PASS tests/format/flow-repo/duplicate_methods/jsfmt.spec.js (7.402 s) PASS tests/format/flow-repo/dump-types/jsfmt.spec.js (7.64 s) PASS tests/format/flow-repo/docblock_flow/jsfmt.spec.js (7.437 s) PASS tests/format/flow-repo/deps/jsfmt.spec.js (7.61 s) PASS tests/format/flow-repo/demo/2/jsfmt.spec.js (7.692 s) PASS tests/format/flow-repo/declaration_files_incremental_haste/ws/jsfmt.spec.js (5.034 s) PASS tests/format/flow-repo/demo/1/jsfmt.spec.js (7.15 s) PASS tests/format/flow-repo/declare_module_exports/flow-typed/jsfmt.spec.js (6.969 s) PASS tests/format/flow-repo/declaration_files_haste/ws/jsfmt.spec.js PASS tests/format/flow-repo/declare_class/lib/jsfmt.spec.js (6.911 s) PASS tests/format/flow-repo/declare_type/lib/jsfmt.spec.js (7.776 s) PASS tests/format/flow-repo/declare_type/jsfmt.spec.js (7.692 s) PASS tests/format/flow-repo/declare_class/jsfmt.spec.js (7.423 s) PASS tests/format/flow-repo/declare_fun/jsfmt.spec.js (7.955 s) PASS tests/format/flow-repo/declaration_files_incremental_haste/ws/test/jsfmt.spec.js (7.14 s) PASS tests/format/flow-repo/declare_module_exports/jsfmt.spec.js (8.129 s) PASS tests/format/flow-repo/declaration_files_incremental_haste_name_reducers/jsfmt.spec.js (7.604 s) PASS tests/format/flow-repo/declaration_files_incremental_haste/external/_d3/jsfmt.spec.js (7.13 s) PASS tests/format/flow-repo/declaration_files_node/jsfmt.spec.js (8.478 s) PASS tests/format/flow-repo/declaration_files_haste/ws/test/jsfmt.spec.js (6.978 s) PASS tests/format/flow-repo/declaration_files_incremental_node/jsfmt.spec.js (8.617 s) PASS tests/format/flow-repo/es6modules/jsfmt.spec.js (14.334 s) PASS tests/format/flow-repo/declaration_files_incremental_haste/foo/bar/jsfmt.spec.js (7.557 s) PASS tests/format/flow-repo/declaration_files_haste/external/_d3/jsfmt.spec.js (6.939 s) PASS tests/format/flow-repo/declaration_files_haste/foo/bar/jsfmt.spec.js (7.374 s) PASS tests/format/flow-repo/declaration_files_haste/jsfmt.spec.js (7.738 s) PASS tests/format/flow-repo/destructuring/jsfmt.spec.js (12.557 s) PASS tests/format/flow-repo/dictionary/jsfmt.spec.js (13.346 s) PASS tests/format/flow-repo/declaration_files_incremental_haste/jsfmt.spec.js (9.719 s) PASS tests/format/flow-repo/disjoint-union-perf/jsfmt.spec.js (14.388 s) PASS tests/format/flow-repo/date/jsfmt.spec.js (7.566 s) PASS tests/format/flow-repo/cycle/jsfmt.spec.js (7.323 s) PASS tests/format/flow-repo/dom/jsfmt.spec.js (15.966 s) PASS tests/format/flow-repo/coverage/jsfmt.spec.js (7.823 s) PASS tests/format/flow-repo/contents/no_flow/jsfmt.spec.js (7.296 s) PASS tests/format/flow-repo/covariance/jsfmt.spec.js (7.756 s) PASS tests/format/flow-repo/contents/ignore/jsfmt.spec.js (7.055 s) PASS tests/format/flow-repo/declare_export/jsfmt.spec.js (14.517 s) PASS tests/format/flow-repo/constructor/jsfmt.spec.js (7.495 s) PASS tests/format/flow-repo/config_munging_underscores2/jsfmt.spec.js (7.786 s) PASS tests/format/flow-repo/config_module_system_node_resolve_dirname/subdir/custom_resolve_dir/testproj2/jsfmt.spec.js (7.066 s) PASS tests/format/flow-repo/config_module_system_node_resolve_dirname/jsfmt.spec.js (7.145 s) PASS tests/format/flow-repo/constructor_annots/jsfmt.spec.js (8.408 s) PASS tests/format/flow-repo/config_module_system_node_resolve_dirname/subdir/jsfmt.spec.js (7.492 s) PASS tests/format/flow-repo/config_munging_underscores/jsfmt.spec.js (7.869 s) PASS tests/format/flow-repo/config_module_system_node_resolve_dirname/custom_resolve_dir/testproj2/jsfmt.spec.js (7.627 s) PASS tests/format/flow-repo/const_params/jsfmt.spec.js (8.612 s) PASS tests/format/flow-repo/config_module_system_node_resolve_dirname/custom_resolve_dir/testproj/jsfmt.spec.js (7.012 s) PASS tests/format/flow-repo/config_module_name_mapper_filetype/jsfmt.spec.js (7.121 s) PASS tests/format/flow-repo/config_module_name_mapper_PROJECT_ROOT-1.0/jsfmt.spec.js (7.013 s) PASS tests/format/flow-repo/core_tests/jsfmt.spec.js (10.051 s) PASS tests/format/flow-repo/config_module_name_mapper_PROJECT_ROOT-1.0/src/jsfmt.spec.js (7.21 s) PASS tests/format/flow-repo/config_module_name_rewrite_haste/jsfmt.spec.js (7.725 s) PASS tests/format/flow-repo/config_module_name_rewrite_node/jsfmt.spec.js (7.833 s) PASS tests/format/flow-repo/config_ignore/jsfmt.spec.js (6.922 s) PASS tests/format/flow-repo/config_ignore/dir/jsfmt.spec.js (6.772 s) PASS tests/format/flow-repo/config_file_extensions/jsfmt.spec.js (7.215 s) PASS tests/format/flow-repo/config_all_false/jsfmt.spec.js (6.839 s) PASS tests/format/flow-repo/config_all/jsfmt.spec.js (6.894 s) PASS tests/format/flow-repo/config_all_weak/jsfmt.spec.js (7.828 s) PASS tests/format/flow-repo/commonjs/jsfmt.spec.js (7.082 s) PASS tests/format/flow-repo/conditional/jsfmt.spec.js (7.605 s) PASS tests/format/flow-repo/computed_props/jsfmt.spec.js (8.332 s) PASS tests/format/flow-repo/check-contents/jsfmt.spec.js (6.537 s) PASS tests/format/flow-repo/class_statics/jsfmt.spec.js (7.983 s) PASS tests/format/flow-repo/class_method_default_parameters/jsfmt.spec.js (7.085 s) PASS tests/format/flow-repo/class_subtyping/jsfmt.spec.js (8.397 s) PASS tests/format/flow-repo/class_type/jsfmt.spec.js (8.776 s) PASS tests/format/flow-repo/closure/jsfmt.spec.js (9.403 s) PASS tests/format/flow-repo/call_caching2/lib/jsfmt.spec.js (7.41 s) PASS tests/format/flow-repo/class_munging/jsfmt.spec.js (8.019 s) PASS tests/format/flow-repo/classes/jsfmt.spec.js (9.571 s) PASS tests/format/flow-repo/callable/jsfmt.spec.js (8.248 s) PASS tests/format/flow-repo/auxiliary/lib/jsfmt.spec.js (6.707 s) PASS tests/format/flow-repo/call_caching2/jsfmt.spec.js (8.328 s) PASS tests/format/flow-repo/auxiliary/jsfmt.spec.js (6.694 s) PASS tests/format/flow-repo/call_caching1/jsfmt.spec.js (8.563 s) PASS tests/format/flow-repo/builtin_uses/jsfmt.spec.js (8.344 s) PASS tests/format/flow-repo/bounded_poly/jsfmt.spec.js (8.458 s) PASS tests/format/flow-repo/builtins/jsfmt.spec.js (8.747 s) PASS tests/format/flow-repo/binary/jsfmt.spec.js (8.184 s) PASS tests/format/flow-repo/break/jsfmt.spec.js (8.784 s) PASS tests/format/flow-repo/call_caching1/lib/jsfmt.spec.js (9.281 s) PASS tests/format/flow-repo/autocomplete/jsfmt.spec.js (7.272 s) PASS tests/format/flow-repo/class_fields/jsfmt.spec.js (10.327 s) PASS tests/format/flow-repo/bom/jsfmt.spec.js (9.882 s) PASS tests/format/flow-repo/call_properties/jsfmt.spec.js (11.641 s) PASS tests/format/flow-repo/async_iteration/jsfmt.spec.js (9.041 s) PASS tests/format/flow-repo/arrows/jsfmt.spec.js (8.235 s) PASS tests/format/flow-repo/arrays/jsfmt.spec.js (8.186 s) PASS tests/format/vue/v-for/jsfmt.spec.js PASS tests/format/flow-repo/array_spread/jsfmt.spec.js (7.633 s) PASS tests/format/flow-repo/arraylib/jsfmt.spec.js (8.855 s) PASS tests/format/flow-repo/async/jsfmt.spec.js (10.736 s) PASS tests/format/flow-repo/binding/jsfmt.spec.js (12.501 s) PASS tests/format/vue/ts-expression/jsfmt.spec.js (5.797 s) PASS tests/format/flow-repo/array-filter/jsfmt.spec.js (7.677 s) PASS tests/format/stylefmt-repo/vendor-prefix/jsfmt.spec.js PASS tests/format/stylefmt-repo/shorthand-with-sass-variables/jsfmt.spec.js PASS tests/format/stylefmt-repo/var-notation/jsfmt.spec.js PASS tests/format/stylefmt-repo/nested/jsfmt.spec.js PASS tests/format/flow-repo/annot2/jsfmt.spec.js (7.636 s) PASS tests/format/vue/vue-3/jsfmt.spec.js (6.998 s) PASS tests/format/stylefmt-repo/values/jsfmt.spec.js PASS tests/format/vue/invalid/jsfmt.spec.js (5.931 s) PASS tests/format/stylefmt-repo/pseudo-element/jsfmt.spec.js PASS tests/format/stylefmt-repo/non-nested-combinator/jsfmt.spec.js PASS tests/format/vue/interpolation/jsfmt.spec.js (5.658 s) PASS tests/format/flow-repo/annot/any/jsfmt.spec.js (7.902 s) PASS tests/format/vue/range/jsfmt.spec.js (6.412 s) PASS tests/format/flow-repo/abnormal/jsfmt.spec.js (7.777 s) PASS tests/format/stylefmt-repo/nested-mixin/jsfmt.spec.js PASS tests/format/flow-repo/any/jsfmt.spec.js (9.416 s) PASS tests/format/stylefmt-repo/nested-mixin-2/jsfmt.spec.js (5.034 s) PASS tests/format/stylefmt-repo/nested-indention-2/jsfmt.spec.js (5.148 s) PASS tests/format/stylefmt-repo/nested-atrule/jsfmt.spec.js PASS tests/format/stylefmt-repo/nested-2/jsfmt.spec.js (5.177 s) PASS tests/format/stylefmt-repo/media-queries-ranges/jsfmt.spec.js PASS tests/format/stylefmt-repo/nested-indention/jsfmt.spec.js (5.962 s) PASS tests/format/flow-repo/arith/jsfmt.spec.js (11.426 s) PASS tests/format/vue/ts-event-binding/jsfmt.spec.js (9.276 s) PASS tests/format/stylefmt-repo/media-indent/jsfmt.spec.js (5.072 s) PASS tests/format/stylefmt-repo/media-indent-with-import/jsfmt.spec.js PASS tests/format/vue/html-vue/jsfmt.spec.js (9.065 s) PASS tests/format/flow-repo/annot/jsfmt.spec.js (11.416 s) PASS tests/format/stylefmt-repo/import/jsfmt.spec.js PASS tests/format/stylefmt-repo/important/jsfmt.spec.js PASS tests/format/stylefmt-repo/custom-media-queries/jsfmt.spec.js PASS tests/format/stylefmt-repo/ie-hacks/jsfmt.spec.js PASS tests/format/stylefmt-repo/data-url/jsfmt.spec.js PASS tests/format/stylefmt-repo/font-shorthand/jsfmt.spec.js (5.038 s) PASS tests/format/stylefmt-repo/font-face/jsfmt.spec.js (5.07 s) PASS tests/format/stylefmt-repo/custom-properties/jsfmt.spec.js PASS tests/format/stylefmt-repo/custom-selectors/jsfmt.spec.js (5.091 s) PASS tests/format/stylefmt-repo/content/jsfmt.spec.js PASS tests/format/stylefmt-repo/charset/jsfmt.spec.js PASS tests/format/stylefmt-repo/charset-2/jsfmt.spec.js PASS tests/format/stylefmt-repo/color-hex-lowercase/jsfmt.spec.js PASS tests/format/stylefmt-repo/comment-in-rules/jsfmt.spec.js (5.02 s) PASS tests/format/stylefmt-repo/comment/jsfmt.spec.js (5.506 s) PASS tests/format/stylefmt-repo/cssnext-example/jsfmt.spec.js (5.819 s) PASS tests/format/stylefmt-repo/attr-selector/jsfmt.spec.js (5.135 s) PASS tests/format/stylefmt-repo/lowercase/jsfmt.spec.js (7.092 s) PASS tests/format/stylefmt-repo/at-apply/jsfmt.spec.js PASS tests/format/stylefmt-repo/at-media/jsfmt.spec.js (5.595 s) PASS tests/format/misc/errors/vue/jsfmt.spec.js PASS tests/format/css/url/jsfmt.spec.js (5.023 s) PASS tests/format/css/selector-string/jsfmt.spec.js PASS tests/format/css/selector-call/jsfmt.spec.js PASS tests/format/css/units/jsfmt.spec.js (5.259 s) PASS tests/format/css/variables/jsfmt.spec.js (5.458 s) PASS tests/format/css/range/jsfmt.spec.js PASS tests/format/css/prefix/jsfmt.spec.js (5.062 s) PASS tests/format/css/params/jsfmt.spec.js PASS tests/format/css/pseudo-call/jsfmt.spec.js (5.52 s) PASS tests/format/css/yaml/jsfmt.spec.js (7.21 s) PASS tests/format/css/modules/jsfmt.spec.js PASS tests/format/css/loose/jsfmt.spec.js PASS tests/format/css/selector-list/jsfmt.spec.js (6.255 s) PASS tests/format/css/important/jsfmt.spec.js PASS tests/format/css/numbers/jsfmt.spec.js (5.493 s) PASS tests/format/css/long-rule/jsfmt.spec.js (5.364 s) PASS tests/format/css/no-semicolon/jsfmt.spec.js (5.686 s) PASS tests/format/css/cursor/jsfmt.spec.js PASS tests/format/css/inline-url/jsfmt.spec.js (5.276 s) PASS tests/format/css/composes/jsfmt.spec.js PASS tests/format/css/postcss-plugins/jsfmt.spec.js (6.258 s) PASS tests/format/css/indent/jsfmt.spec.js (5.306 s) PASS tests/format/css/fill-value/jsfmt.spec.js (5.148 s) PASS tests/format/css/combinator/jsfmt.spec.js PASS tests/format/css/grid/jsfmt.spec.js (5.498 s) PASS tests/format/css/colon/jsfmt.spec.js PASS tests/format/css/empty/jsfmt.spec.js (5.376 s) PASS tests/format/css/parens/jsfmt.spec.js (6.608 s) PASS tests/format/css/character-escaping/jsfmt.spec.js PASS tests/format/css/atword/jsfmt.spec.js PASS tests/format/css/bom/jsfmt.spec.js PASS tests/format/css/comments/jsfmt.spec.js (5.322 s) PASS tests/format/css/case/jsfmt.spec.js PASS tests/format/css/color/jsfmt.spec.js (5.124 s) PASS tests/format/css/atrule/jsfmt.spec.js (6.027 s) A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them. Summary of all failing tests FAIL tests/integration/__tests__/patterns-glob.js (16.884 s) ● fixtures-1: Should match all files › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/patterns-glob.js:15:75 at Object. (tests/integration/__tests__/patterns-glob.js:14:1) ● fixtures-1: Should match all files › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match all files › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match all files › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match files except `a.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match files except `a.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match files except `a.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-1: Should match files except `a.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match all js files and all supported files in the '!dir.js' directory › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match all js files and all supported files in the '!dir.js' directory › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match all js files and all supported files in the '!dir.js' directory › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match all js files and all supported files in the '!dir.js' directory › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match `a.js` and `!b.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match `a.js` and `!b.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match `a.js` and `!b.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should match `a.js` and `!b.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should only match `!b.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should only match `!b.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should only match `!b.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-2: Should only match `!b.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should match `outside.js`, `dir/inside.js` and `dir/node_modules/in-node_modules.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should match `outside.js`, `dir/inside.js` and `dir/node_modules/in-node_modules.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should match `outside.js`, `dir/inside.js` and `dir/node_modules/in-node_modules.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should match `outside.js`, `dir/inside.js` and `dir/node_modules/in-node_modules.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should only match `outside.js` and `dir/inside.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should only match `outside.js` and `dir/inside.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should only match `outside.js` and `dir/inside.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should only match `outside.js` and `dir/inside.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (existing) › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (existing) › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (existing) › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (existing) › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (nonexisting) › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (nonexisting) › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (nonexisting) › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-3: Should exclude `.svn` › (nonexisting) › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #2 › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #2 › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #2 › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #2 › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #3 › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #3 › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #3 › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● fixtures-4: Should match `level-1.js` #3 › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● should not ignore file paths contains object prototype keys › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● should not ignore file paths contains object prototype keys › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● should not ignore file paths contains object prototype keys › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● should not ignore file paths contains object prototype keys › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) FAIL tests/integration/__tests__/patterns.js (16.126 s) ● multiple patterns › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/patterns.js:12:6 at Object. (tests/integration/__tests__/patterns.js:7:1) ● multiple patterns › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with non exists pattern › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with non exists pattern › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with non exists pattern › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with non exists pattern › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with ignore nested directories pattern › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with ignore nested directories pattern › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with ignore nested directories pattern › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns with ignore nested directories pattern › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by default › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by default › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by default › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by default › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by with ./**/*.js › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by with ./**/*.js › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by with ./**/*.js › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, ignores node_modules by with ./**/*.js › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, doesn't ignore node_modules with --with-node-modules flag › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, doesn't ignore node_modules with --with-node-modules flag › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, doesn't ignore node_modules with --with-node-modules flag › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns by with ignore pattern, doesn't ignore node_modules with --with-node-modules flag › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● no errors on empty patterns › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● no errors on empty patterns › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● no errors on empty patterns › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● no errors on empty patterns › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns, throw error and exit with non zero code on non existing files › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns, throw error and exit with non zero code on non existing files › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns, throw error and exit with non zero code on non existing files › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● multiple patterns, throw error and exit with non zero code on non existing files › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) FAIL tests/integration/__tests__/with-config-precedence.js (17.585 s) ● CLI overrides take precedence without --config-precedence › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/with-config-precedence.js:12:6 at Object. (tests/integration/__tests__/with-config-precedence.js:5:1) ● CLI overrides take precedence without --config-precedence › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence without --config-precedence › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence without --config-precedence › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence with --config-precedence cli-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence with --config-precedence cli-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence with --config-precedence cli-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence with --config-precedence cli-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take lower precedence with --config-precedence file-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take lower precedence with --config-precedence file-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take lower precedence with --config-precedence file-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take lower precedence with --config-precedence file-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides are still applied when no config is found with --config-precedence file-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides are still applied when no config is found with --config-precedence file-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides are still applied when no config is found with --config-precedence file-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides are still applied when no config is found with --config-precedence file-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets ignored when config exists with --config-precedence prefer-file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets ignored when config exists with --config-precedence prefer-file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets ignored when config exists with --config-precedence prefer-file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets ignored when config exists with --config-precedence prefer-file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets applied when no config exists with --config-precedence prefer-file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets applied when no config exists with --config-precedence prefer-file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets applied when no config exists with --config-precedence prefer-file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides gets applied when no config exists with --config-precedence prefer-file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence cli-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence cli-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence cli-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence cli-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence file-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence file-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence file-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence file-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence prefer-file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence prefer-file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence prefer-file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI validate options with --config-precedence prefer-file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence prefer-file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence prefer-file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence prefer-file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence prefer-file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence file-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence file-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence file-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence file-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence cli-override › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence cli-override › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence cli-override › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI --stdin-filepath works with --config-precedence cli-override › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) FAIL tests/integration/__tests__/patterns-dirs.js (20.079 s) ● 1: prettier dir1 dir2 › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/patterns-dirs.js:168:42 at testPatterns (tests/integration/__tests__/patterns-dirs.js:167:3) at Object. (tests/integration/__tests__/patterns-dirs.js:30:1) ● 1: prettier dir1 dir2 › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1: prettier dir1 dir2 › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1: prettier dir1 dir2 › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1a - with *.foo plugin: prettier dir1 dir2 --plugin=../../plugins/extensions/plugin › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1a - with *.foo plugin: prettier dir1 dir2 --plugin=../../plugins/extensions/plugin › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1a - with *.foo plugin: prettier dir1 dir2 --plugin=../../plugins/extensions/plugin › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1a - with *.foo plugin: prettier dir1 dir2 --plugin=../../plugins/extensions/plugin › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1b - special characters in dir name: prettier dir1 '!dir' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1b - special characters in dir name: prettier dir1 '!dir' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1b - special characters in dir name: prettier dir1 '!dir' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1b - special characters in dir name: prettier dir1 '!dir' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1c: prettier dir1 empty › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1c: prettier dir1 empty › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1c: prettier dir1 empty › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 1c: prettier dir1 empty › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 2: prettier dir1 'dir2/**/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 2: prettier dir1 'dir2/**/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 2: prettier dir1 'dir2/**/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 2: prettier dir1 'dir2/**/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 3: prettier nonexistent-dir 'dir2/**/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 3: prettier nonexistent-dir 'dir2/**/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 3: prettier nonexistent-dir 'dir2/**/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 3: prettier nonexistent-dir 'dir2/**/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 4: prettier . 'dir2/**/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 4: prettier . 'dir2/**/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 4: prettier . 'dir2/**/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● 4: prettier . 'dir2/**/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 1: prettier ./ › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 1: prettier ./ › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 1: prettier ./ › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 1: prettier ./ › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 2: prettier .// › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 2: prettier .// › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 2: prettier .// › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 2: prettier .// › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 3: prettier dir1/ › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 3: prettier dir1/ › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 3: prettier dir1/ › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 3: prettier dir1/ › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 4: prettier dir1// › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 4: prettier dir1// › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 4: prettier dir1// › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 4: prettier dir1// › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 5: prettier .//dir2/..//./dir1// › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 5: prettier .//dir2/..//./dir1// › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 5: prettier .//dir2/..//./dir1// › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › 5: prettier .//dir2/..//./dir1// › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 1: prettier .. › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 1: prettier .. › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 1: prettier .. › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 1: prettier .. › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 2: prettier ../ › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 2: prettier ../ › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 2: prettier ../ › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 2: prettier ../ › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 3: prettier ../dir1 › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 3: prettier ../dir1 › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 3: prettier ../dir1 › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 3: prettier ../dir1 › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 4: prettier ../dir1/ › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 4: prettier ../dir1/ › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 4: prettier ../dir1/ › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Trailing slash › run in sub dir 4: prettier ../dir1/ › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1: prettier dir1 '!dir1/nested1' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1: prettier dir1 '!dir1/nested1' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1: prettier dir1 '!dir1/nested1' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1: prettier dir1 '!dir1/nested1' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1a: prettier dir1 '!dir1/nested1/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1a: prettier dir1 '!dir1/nested1/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1a: prettier dir1 '!dir1/nested1/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 1a: prettier dir1 '!dir1/nested1/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 2: prettier . '!dir1/nested1' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 2: prettier . '!dir1/nested1' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 2: prettier . '!dir1/nested1' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 2: prettier . '!dir1/nested1' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 3: prettier . '!dir1/nested1/an1.js' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 3: prettier . '!dir1/nested1/an1.js' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 3: prettier . '!dir1/nested1/an1.js' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 3: prettier . '!dir1/nested1/an1.js' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 4: prettier '!nonexistent-dir1 !nonexistent-dir2' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 4: prettier '!nonexistent-dir1 !nonexistent-dir2' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 4: prettier '!nonexistent-dir1 !nonexistent-dir2' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › 4: prettier '!nonexistent-dir1 !nonexistent-dir2' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › with explicit files: prettier dir1/a1.js dir2/a2.js '!dir1/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › with explicit files: prettier dir1/a1.js dir2/a2.js '!dir1/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › with explicit files: prettier dir1/a1.js dir2/a2.js '!dir1/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Negative patterns › with explicit files: prettier dir1/a1.js dir2/a2.js '!dir1/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Exclude yarn.lock when expanding directories: prettier . › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Exclude yarn.lock when expanding directories: prettier . › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Exclude yarn.lock when expanding directories: prettier . › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Exclude yarn.lock when expanding directories: prettier . › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `.` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `.` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `.` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `.` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `*` › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `*` › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `*` › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● plugins `*` › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\/test.js' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\/test.js' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\/test.js' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\/test.js' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a\' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a*/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a*/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a*/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-a*/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?/test.js' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?/test.js' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?/test.js' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?/test.js' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b\?' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b*/*' › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b*/*' › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b*/*' › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Backslashes in names › prettier 'test-b*/*' › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) FAIL tests/integration/__tests__/config-resolution.js (23.742 s) ● resolves configuration from external files › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/config-resolution.js:11:66 at Object. (tests/integration/__tests__/config-resolution.js:10:1) ● resolves configuration from external files › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files and overrides by extname › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files and overrides by extname › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files and overrides by extname › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration from external files and overrides by extname › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● accepts configuration from --config › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● accepts configuration from --config › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● accepts configuration from --config › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● accepts configuration from --config › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves external configuration from package.json › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves external configuration from package.json › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves external configuration from package.json › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves external configuration from package.json › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration file with --find-config-path file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration file with --find-config-path file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration file with --find-config-path file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves configuration file with --find-config-path file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves json configuration file with --find-config-path file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves json configuration file with --find-config-path file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves json configuration file with --find-config-path file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves json configuration file with --find-config-path file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves yaml configuration file with --find-config-path file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves yaml configuration file with --find-config-path file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves yaml configuration file with --find-config-path file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves yaml configuration file with --find-config-path file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves toml configuration file with --find-config-path file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves toml configuration file with --find-config-path file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves toml configuration file with --find-config-path file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● resolves toml configuration file with --find-config-path file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● prints error message when no file found with --find-config-path › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● prints error message when no file found with --find-config-path › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● prints error message when no file found with --find-config-path › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● prints error message when no file found with --find-config-path › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● CLI overrides take precedence › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● API resolveConfig with no args expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 3 - Object {} + Object { + "endOfLine": "auto", + } 82 | test("API resolveConfig with no args", () => 83 | prettier.resolveConfig().then((result) => { > 84 | expect(result).toEqual({}); | ^ 85 | })); 86 | 87 | test("API resolveConfig.sync with no args", () => { at tests/integration/__tests__/config-resolution.js:84:20 ● API resolveConfig.sync with no args expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 3 - Object {} + Object { + "endOfLine": "auto", + } 86 | 87 | test("API resolveConfig.sync with no args", () => { > 88 | expect(prettier.resolveConfig.sync()).toEqual({}); | ^ 89 | }); 90 | 91 | test("API resolveConfig with file arg", () => { at Object. (tests/integration/__tests__/config-resolution.js:88:41) FAIL tests/integration/__tests__/ignore-unknown.js (9.675 s) ● ignore-unknown dir › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/ignore-unknown.js:10:6 at Object. (tests/integration/__tests__/ignore-unknown.js:5:1) ● ignore-unknown dir › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown dir › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown dir › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown alias › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown alias › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown alias › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown alias › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown pattern › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown pattern › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown pattern › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown pattern › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown write › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown write › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown write › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown write › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown check › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown check › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown check › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● ignore-unknown check › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● None exist file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● None exist file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● None exist file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● None exist file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Not matching pattern › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Not matching pattern › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Not matching pattern › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Not matching pattern › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Ignored file › (status) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Ignored file › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Ignored file › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● Ignored file › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) FAIL tests/integration/__tests__/cache.js (36.263 s) ● --cache option › --cache-strategy metadata › creates default cache file named `node_modules/.cache/prettier/.prettier-cache` thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 88 | 89 | describe("--cache-strategy metadata", () => { > 90 | it("creates default cache file named `node_modules/.cache/prettier/.prettier-cache`", async () => { | ^ 91 | await expect(fs.stat(defaultCacheFile)).rejects.toHaveProperty( 92 | "code", 93 | "ENOENT" at tests/integration/__tests__/cache.js:90:5 at tests/integration/__tests__/cache.js:89:3 at Object. (tests/integration/__tests__/cache.js:14:1) ● --cache option › --cache-strategy metadata › doesn't format when cache is available thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 97 | }); 98 | > 99 | it("doesn't format when cache is available", async () => { | ^ 100 | const { stdout: firstStdout } = await runPrettier(dir, [ 101 | "--cache", 102 | "--write", at tests/integration/__tests__/cache.js:99:5 at tests/integration/__tests__/cache.js:89:3 at Object. (tests/integration/__tests__/cache.js:14:1) ● --cache option › --cache-strategy metadata › re-formats when a file has been updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › re-formats when timestamp has been updated Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › re-formats when options has been updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › re-formats after execution without write. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › re-formats when multiple cached files are updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › doesn't cache files when write error. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy metadata › removes cache file when run Prettier without `--cache` option Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › creates default cache file named `node_modules/.cache/prettier/.prettier-cache` Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › doesn't format when cache is available Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › re-formats when a file has been updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › doesn't re-format when timestamp has been updated Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › re-formats when options has been updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › re-formats after execution without write. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › re-formats when multiple cached files are updated. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › doesn't cache files when write error. Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-strategy content › removes cache file when run Prettier without `--cache` option Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-location › doesn't create default cache file when `--cache-location` exists Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-location › throws error for invalid JSON file Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-location › file › creates the cache file at location specified by `--cache-location` Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --cache option › --cache-location › file › does'nt format when cache is available Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) FAIL tests/integration/__tests__/list-different.js (20.701 s) ● checks stdin with --list-different › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: " ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/patterns-dirs.js.· 115 | 116 | try { > 117 | await require(prettierCli); | ^ 118 | status = (status === undefined ? process.exitCode : status) || 0; 119 | } catch (error) { 120 | status = 1; at Object.get babel [as babel] (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:16) at resolveParser (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) at normalize (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) at formatWithCursor2 (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) at Object.formatWithCursor (tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] dir1/b1.js: TypeError: Cannot read properties of undefined (reading 'babel') [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) " at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with -l (alias for --list-different) › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 3 + + + (stdin) ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with -l (alias for --list-different) › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: ../with-shebang/dir1/nested1/an1.css [error] ENOENT: no such file or directory, open '../with-shebang/dir1/nested1/an1.css' [error] Unable to read file: ../with-shebang/dir1/nested1/an1.js [error] ENOENT: no such file or directory, open '../with-shebang/dir1/nested1/an1.js' [error] Unable to read file: ../with-shebang/dir1/nested1/bn1.js [error] ENOENT: no such file or directory, open '../with-shebang/dir1/nested1/bn1.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● --list-different works in CI just as in a non-TTY mode › (stdout) expect(received).toMatchSnapshot() Snapshot name: `--list-different works in CI just as in a non-TTY mode (stdout) 1` - Snapshot - 0 + Received + 4 + ../write/dir2/a2.js + ../write/dir2/b2.js + ../write/dir2/nested2/an2.js + ../write/dir2/nested2/bn2.js unformatted.js ↵ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● --list-different works in CI just as in a non-TTY mode › (stderr) expect(received).toMatchSnapshot() Snapshot name: `--list-different works in CI just as in a non-TTY mode (stderr) 1` - Snapshot - 0 + Received + 9 + [error] Unable to read file: ../write/dir2/a2.js + [error] ENOENT: no such file or directory, open '../write/dir2/a2.js' + [error] Unable to read file: ../write/dir2/b2.js + [error] ENOENT: no such file or directory, open '../write/dir2/b2.js' + [error] Unable to read file: ../write/dir2/nested2/an2.js + [error] ENOENT: no such file or directory, open '../write/dir2/nested2/an2.js' + [error] Unable to read file: ../write/dir2/nested2/bn2.js + [error] ENOENT: no such file or directory, open '../write/dir2/nested2/bn2.js' + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● --list-different works in CI just as in a non-TTY mode › Should be the same expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 4 + ../write/dir2/a2.js + ../write/dir2/b2.js + ../write/dir2/nested2/an2.js + ../write/dir2/nested2/bn2.js unformatted.js ↵ 46 | 47 | test("Should be the same", async () => { > 48 | expect(await result0.stdout).toEqual(await result1.stdout); | ^ 49 | }); 50 | }); 51 | at Object. (tests/integration/__tests__/list-different.js:48:34) FAIL tests/integration/__tests__/debug-check.js (23.764 s) ● doesn't crash when --debug-check is passed › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● doesn't crash when --debug-check is passed › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 + issue1890.js ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● doesn't crash when --debug-check is passed › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: editorconfig/lib/file.js [error] ENOENT: no such file or directory, open 'editorconfig/lib/file.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with --debug-check › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with --debug-check › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 + (stdin) ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● checks stdin with --debug-check › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: ../with-shebang/editorconfig/lib/indent_size=tab.js [error] ENOENT: no such file or directory, open '../with-shebang/editorconfig/lib/indent_size=tab.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● show diff for 2+ error files with --debug-check › (stdout) expect(received).toMatchSnapshot() Snapshot name: `show diff for 2+ error files with --debug-check (stdout) 1` - Snapshot - 0 + Received + 3 + + + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● show diff for 2+ error files with --debug-check › (stderr) expect(received).toMatchSnapshot() Snapshot name: `show diff for 2+ error files with --debug-check (stderr) 1` - Snapshot - 0 + Received + 4 @@ -1,5 +1,9 @@ + [error] Unable to read file: ../with-shebang/editorconfig/repo-root/file.js + [error] ENOENT: no such file or directory, open '../with-shebang/editorconfig/repo-root/file.js' + [error] Unable to read file: ../debug-check/external-config/index.js + [error] ENOENT: no such file or directory, open '../debug-check/external-config/index.js' [error] a.debug-check: prettier(input) !== prettier(prettier(input)) [error] Index: [error] =================================================================== [error] --- [error] +++ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● should not exit non-zero for already prettified code with --debug-check + --check › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● should not exit non-zero for already prettified code with --debug-check + --check › (stdout) expect(received).toMatchSnapshot() Snapshot name: `should not exit non-zero for already prettified code with --debug-check + --check (stdout) 1` - Snapshot - 0 + Received + 1 Checking formatting... + issue-4599.js All matched files use Prettier code style! ↵ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● should not exit non-zero for already prettified code with --debug-check + --check › (stderr) expect(received).toMatchSnapshot() Snapshot name: `should not exit non-zero for already prettified code with --debug-check + --check (stderr) 1` - Snapshot - 0 + Received + 3 + [error] Unable to read file: ../debug-check/filepath/subfolder/file.js + [error] ENOENT: no such file or directory, open '../debug-check/filepath/subfolder/file.js' + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● should not exit non-zero for already prettified code with --debug-check + --list-different › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● should not exit non-zero for already prettified code with --debug-check + --list-different › (stdout) expect(received).toMatchSnapshot() Snapshot name: `should not exit non-zero for already prettified code with --debug-check + --list-different (stdout) 1` - Snapshot - 0 + Received + 5 + + + + + issue-4599.js ↵ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● should not exit non-zero for already prettified code with --debug-check + --list-different › (stderr) expect(received).toMatchSnapshot() Snapshot name: `should not exit non-zero for already prettified code with --debug-check + --list-different (stderr) 1` - Snapshot - 0 + Received + 11 + [error] Unable to read file: ../debug-check/jest/__best-tests__/.file.js + [error] ENOENT: no such file or directory, open '../debug-check/jest/__best-tests__/.file.js' + [error] Unable to read file: ../debug-check/jest/__best-tests__/file.js + [error] ENOENT: no such file or directory, open '../debug-check/jest/__best-tests__/file.js' + [error] Unable to read file: ../debug-check/jest/Component.js + [error] ENOENT: no such file or directory, open '../debug-check/jest/Component.js' + [error] Unable to read file: ../debug-check/jest/Component.test.js + [error] ENOENT: no such file or directory, open '../debug-check/jest/Component.test.js' + [error] Unable to read file: ../debug-check/js/file.js + [error] ENOENT: no such file or directory, open '../debug-check/js/file.js' + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) FAIL tests/integration/__tests__/with-node-modules.js (24.767 s) ● ignores node_modules by default › (status) expect(received).toEqual(expected) // deep equality Expected: 1 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● ignores node_modules by default › (stdout) expect(received).toMatchSnapshot() Snapshot name: `ignores node_modules by default (stdout) 1` - Snapshot - 2 + Received + 2 - not_node_modules/file.js - regular-module.js + + ↵ 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) ● ignores node_modules by default › (stderr) expect(received).toMatchSnapshot() Snapshot name: `ignores node_modules by default (stderr) 1` - Snapshot - 0 + Received + 24 + + ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From tests/integration/__tests__/patterns.js. + + at Object.get babel [as babel] (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:16) + at resolveParser (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) + at normalize (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) + at formatWithCursor2 (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) + at Object.formatWithCursor (../../../../tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) + [error] other-directory/nested-directory/nested-directory-file.js: TypeError: Cannot read properties of undefined (reading 'babel') + [error] at Object.get babel [as babel] (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:30333:52) + [error] at resolveParser (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7492:25) + [error] at normalize (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:7741:22) + [error] at formatWithCursor2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:9006:50) + [error] at Object.formatWithCursor (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/index.js:38183:12) + [error] at format (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15017:24) + [error] at formatFiles2 (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15131:22) + [error] at main (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15356:5) + [error] at Object.run (/tmp/96abf15e6598a79a5bf68b68ed0c3989/node_modules/prettier/cli.js:15303:5) + [error] at run (/build/prettier/src/prettier-2.8.7/tests/integration/run-prettier.js:117:5) + [error] Unable to read file: ../../../../not_node_modules/file.js + [error] ENOENT: no such file or directory, open '../../../../not_node_modules/file.js' + [error] Unable to read file: ../../../../regular-module.js + [error] ENOENT: no such file or directory, open '../../../../regular-module.js' + 203 | } 204 | } else { > 205 | expect(value).toMatchSnapshot(); | ^ 206 | } 207 | }); 208 | } at Object. (tests/integration/run-prettier.js:205:25) FAIL tests/integration/__tests__/plugin-precedence.js (5.995 s) ● json-stringify takes precedence over json for package.json › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● json-stringify takes precedence over json for package.json › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 + { "a": "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" } ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● json-stringify takes precedence over json for package.json › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: no-config/file.js [error] ENOENT: no such file or directory, open 'no-config/file.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) FAIL tests/integration/__tests__/ignore-relative-path.js (7.446 s) ● support relative paths › (status) thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 183 | function testResult(testOptions) { 184 | for (const name of ["status", "stdout", "stderr", "write"]) { > 185 | test(`${options.title || ""}(${name})`, async () => { | ^ 186 | const result = await runCli(); 187 | const value = 188 | // \r is trimmed from jest snapshots by default; at Object.testResult [as test] (tests/integration/run-prettier.js:185:7) at tests/integration/__tests__/ignore-relative-path.js:15:6 at Object. (tests/integration/__tests__/ignore-relative-path.js:7:1) ● support relative paths › (stdout) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● support relative paths › (stderr) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) ● support relative paths › (write) Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object. (tests/integration/run-prettier.js:186:30) FAIL tests/integration/__tests__/plugin-virtual-directory.js (5.935 s) ● plugin search should not crash when prettier isn't inside a directory › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● plugin search should not crash when prettier isn't inside a directory › (stdout) expect(received).toEqual(expected) // deep equality Expected: "" Received: " " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● plugin search should not crash when prettier isn't inside a directory › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: ../../plugins/package/file.js [error] ENOENT: no such file or directory, open '../../plugins/package/file.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) FAIL tests/integration/__tests__/plugin-extensions.js (6.719 s) ● uses 'extensions' from languages to determine parser › (status) expect(received).toEqual(expected) // deep equality Expected: 0 Received: 2 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● uses 'extensions' from languages to determine parser › (stdout) expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 + !contents ↵ 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) ● uses 'extensions' from languages to determine parser › (stderr) expect(received).toEqual(expected) // deep equality Expected: "" Received: "[error] Unable to read file: a.js [error] ENOENT: no such file or directory, open 'a.js' " 200 | testOptions[name](value); 201 | } else { > 202 | expect(value).toEqual(testOptions[name]); | ^ 203 | } 204 | } else { 205 | expect(value).toMatchSnapshot(); at Object. (tests/integration/run-prettier.js:202:27) FAIL tests/integration/__tests__/plugin-resolution.js (70.148 s) ● --no-plugin-search thrown: "Exceeded timeout of 5000 ms for a test. Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." 207 | }); 208 | > 209 | test("--no-plugin-search", async () => { | ^ 210 | async function getParser(args = []) { 211 | const { stdout } = await runPrettier("plugins/automatic", [ 212 | "--file-info=file.foo", at Object. (tests/integration/__tests__/plugin-resolution.js:209:1) ● --no-plugin-search still allow use --plugin Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) ● --no-plugin-search together with --plugin-search-dir Please wait for previous CLI to exit. 169 | function runCli() { 170 | if (hasRunningCli) { > 171 | throw new Error("Please wait for previous CLI to exit."); | ^ 172 | } 173 | 174 | if (!promise) { at runCli (tests/integration/run-prettier.js:171:13) at Object.then (tests/integration/run-prettier.js:163:14) Snapshot Summary › 10 snapshots failed from 3 test suites. Inspect your code changes or run `yarn run test:dist -u` to update them. Test Suites: 15 failed, 1190 passed, 1205 total Tests: 391 failed, 16047 passed, 16438 total Snapshots: 10 failed, 7461 passed, 7471 total Time: 447.385 s Ran all test suites. Removing installed Prettier: - /tmp/96abf15e6598a79a5bf68b68ed0c3989 DONE error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix17/build receiving incremental file list prettier-2.8.7-1-riscv64-build.log prettier-2.8.7-1-riscv64-check.log prettier-2.8.7-1-riscv64-prepare.log sent 81 bytes received 29,953 bytes 12,013.60 bytes/sec total size is 497,686 speedup is 16.57