What do the colors in `yarn list` mean?

When I run yarn list modules are shown in either white or a faded grey color. $ yarn list –pattern ‘@mycompany/foo-api’ yarn list v1.19.0 ├─ WHITE @mycompany/some-module@1.0.0 │ └─ WHITE @mycompany/foo-api@1.0.17 └─ GREY @mycompany/foo-api@1.0.15 Done in 0.72s. There is no documentation on the colors. What do the colors in yarn list mean? >Solution : This… Read More What do the colors in `yarn list` mean?

Can using foreach of CopyOnWriteArrayList cause ConcurrentModificationException in java?

I look to java 11 implementation of .foreach method in CopyOnWriteArrayList public void forEach(Consumer<? super E> action) { Objects.requireNonNull(action); for (Object x : getArray()) { @SuppressWarnings("unchecked") E e = (E) x; action.accept(e); } } I see that it just loops the array without any locks. Can add() or remove() performed concurrently with foreach give a… Read More Can using foreach of CopyOnWriteArrayList cause ConcurrentModificationException in java?

Why Is Asserting Resolved UIColor Failing After Changing UIUserInterfaceStyle in Unit Test?

I am working on a project that uses named color assets, and I am responsible for updating the unit tests that assert the correct color values. We have an XCTestCase subclass (BaseXCTestCase) that has a window property, which is set to a value of UIApplication.shared.firstKeyWindow: var window = UIApplication.shared.firstKeyWindow! firstKeyWindow is defined as windows.filter {… Read More Why Is Asserting Resolved UIColor Failing After Changing UIUserInterfaceStyle in Unit Test?