From a39c114454362892c732a205623e6cf65402ad41 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 20 Jan 2024 12:57:13 -0800 Subject: [PATCH] Clarify that file paths and globs are cwd-relative --- setup/nodejs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/nodejs.md b/setup/nodejs.md index f0d9eea..68e2e08 100644 --- a/setup/nodejs.md +++ b/setup/nodejs.md @@ -60,6 +60,7 @@ Helpers are executed once before all specs. For an example of some helpers see t ```javascript { // Spec directory path relative to the current working dir when jasmine is executed. + // The value "" represents the current working directory. "spec_dir": "spec", // Array of filepaths (and globs) relative to spec_dir to include and exclude @@ -295,7 +296,7 @@ Calling `execute` will run the specs. jasmine.execute(); ``` -`execute` can optionally be called with a list of spec file paths to execute relative to your project root and a string to filter by spec name. +`execute` can optionally be called with a list of spec file paths to execute relative to the current working directory and a string to filter by spec name. ```javascript jasmine.execute(['fooSpec.js'], 'a spec name');