Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71628

Read jsConfig baseUrl if its present, and use it as a loader base for modules

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Server Serverless 2022-12-12, Server Serverless 2022-12-26

      In order to properly support the existing specifier paths used for load in the mongo test runner, we need to either:

      • assume we are always running the test runner from the same directory
      • use some standard convention for determining the base URL for running tests

      The code for load assumes the first, which is slightly problematic since you can't run jstests from any folder. VSCode/TypeScript use jsconfig.json to support a baseUrl option, which informs module loaders what the prefix for specifiers should be. This ticket will cover adding support for a jsconfig.json in the test runner, as well as adding one to the base directory of the mongo source directory.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: