We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f731d15 commit dd35236Copy full SHA for dd35236
stdlib-candidate/testing.nu
@@ -161,11 +161,11 @@ export def ($test_function_name) [] {
161
| str join (char nl)
162
| save $rendered_module_path
163
164
+ const current_path = (path self)
165
let result = (
- ^$nu.current-exe --no-config-file -c $"use ($rendered_module_path) *; ($test_function_name)|to nuon"
166
+ ^$nu.current-exe -I ($current_path | path dirname) --no-config-file -c $"use ($rendered_module_path) *; ($test_function_name)|to nuon"
167
| complete
168
)
-
169
rm $rendered_module_path
170
171
return $result
stdlib-candidate/tests/path.nu
@@ -1,4 +1,4 @@
1
-use std *
+use path
2
use std/assert
3
4
#[test]
0 commit comments