* test: move expect blocks (without other changes) to end of test
This is required for the refactor in the next commit. The log statements
have to run before consuming the output stream, otherwise the output
stream will be empty.
* test: fix swallowed Jest expect errors in `default-reporter` package
* test: fix expected to match actual values in default-reporter tests
* refactor: remove redundant `.pipe(take(1))`
With the refactor to use `firstValueFrom`, the `take(1)` is now
redundant in many places.
```ts
firstValueFrom(output$.pipe(take(1)))
```
```ts
firstValueFrom(output$)
```
* fix: correct corepack self-update instructions
The previous instructions did not actually update the pnpm version used
by corepack in the local project.
See https://github.com/nodejs/corepack/issues/587
* refactor: store link values before converting to references
* fix: use .sort() without localeCompare
https://github.com/pnpm/pnpm/pull/8128#discussion_r1614031566
> Nit, but you probably just want to call sort without a comparison
> function; these are already strings and locale compare is not a good
> comparison for anything but human readable strings since it will
> differ on different people's machines based on their language setting.
> I've hit this too many times before for code gen.
* feat: configure meta-updater to write test/tsconfig.json files
* fix: relative imports for __typings__
* chore: `pnpm run meta-updater`
* fix: explicitly use test/tsconfig.json for ts-jest
When running the CLI, downloads will show their progress,
e.g. `1.12 MB/ 3 MB`, showing only significant digits.
As the output is constantly updated, the length of the line in the
output might constantly change (2.99 -> 3 -> 3.3 -> 3.33), leading
to a visually very noisy display.
close#6901
---------
Co-authored-by: Zoltan Kochan <z@kochan.io>
In order to filter out packages from the installation summary,
a filter function may be passed to the reporter: filterPkgsDiff.
This feature is only useful for Bit CLI currently.
Related PR: https://github.com/teambit/bit/pull/7176