nushell/tests
Wind 36909a2b73 use command: Don't create a variable with empty record if it doesn't define any constants (#14051)
# Description
Fixes: #13967

The key changes lays in `nu-protocol/src/module.rs`, when resolving
import pattern, nushell only needs to bring `$module` with a record
value if it defines any constants.

# User-Facing Changes
```nushell
module spam {}
use spam
```
Will no longer create a `$spam` variable with an empty record.

# Tests + Formatting
Adjusted some tests and added some tests.
2024-10-19 17:24:09 +02:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
const_ use command: Don't create a variable with empty record if it doesn't define any constants (#14051) 2024-10-19 17:24:09 +02:00
eval Fix try: Add set_last_error() to prepare_error_handler() for IR eval (#13838) 2024-09-13 00:07:22 -07:00
fixtures Expand multiple dots in path in completions (#13725) 2024-09-09 14:39:18 -04:00
hooks Refactor config updates (#13802) 2024-10-11 18:40:32 +02:00
modules Enable reloading changes to a submodule (#13170) 2024-06-25 18:33:37 -07:00
overlays Avoid taking unnecessary ownership of intermediates (#12740) 2024-05-04 00:53:15 +00:00
parsing Avoid taking unnecessary ownership of intermediates (#12740) 2024-05-04 00:53:15 +00:00
path Avoid taking unnecessary ownership of intermediates (#12740) 2024-05-04 00:53:15 +00:00
plugin_persistence Make plugin list read state from plugin registry file as well (#14085) 2024-10-19 17:24:09 +02:00
plugins Make plugin list read state from plugin registry file as well (#14085) 2024-10-19 17:24:09 +02:00
repl use command: Don't create a variable with empty record if it doesn't define any constants (#14051) 2024-10-19 17:24:09 +02:00
scope Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
shell change display_error.exit_code to false (#13873) 2024-10-14 09:57:30 -05:00
main.rs Merged tests to produce a single binary (#12826) 2024-05-13 13:37:53 +00:00