From 83e59be1d1102e814cc46159e30053077d3648ef Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Tue, 10 Oct 2023 19:04:08 -0700 Subject: [PATCH] Fixed API docs for Runner#loadConfigFile --- lib/runner_base.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/runner_base.js b/lib/runner_base.js index 663635a..a44b595 100644 --- a/lib/runner_base.js +++ b/lib/runner_base.js @@ -67,8 +67,12 @@ class RunnerBase { /** * Loads configuration from the specified file. The file can be a JSON file or - * any JS file that's loadable via require and provides a Jasmine config + * any JS file that's loadable as a module and provides a Jasmine config * as its default export. + * + * The config file will be loaded via dynamic import() unless this Jasmine + * instance has already been configured with {jsLoader: 'require'}. Dynamic + * import() supports ES modules as well as nearly all CommonJS modules. * @name Runner#loadConfigFile * @function * @param {string} [configFilePath=spec/support/jasmine.json]