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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Fully Compatible
    • Server Serverless 2022-12-12, Server Serverless 2022-12-26

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: