#! /bin/sh
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

printf "\nFocus a file in node_modules with a dependent also in node_modules.\n"
assert_ok "$FLOW" force-recheck --focus node_modules/a.js

printf "\nBy focusing on a.js, we should force-check main.js, and only report\n"
printf "errors there, not in node_modules.\n"
assert_errors "$FLOW" status --no-auto-start
