Skip to content

Commit

Permalink
Clarify that file paths and globs are cwd-relative
Browse files Browse the repository at this point in the history
  • Loading branch information
sgravrock committed Jan 20, 2024
1 parent 44579ed commit a39c114
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit a39c114

Please sign in to comment.