Skip to content

Stop importing node modules directly in Mocha webdriver tests #9735

Description

@grega

When completing the recent documentation work (#9671 (comment)) it became apparent that the webdriver tests are directly importing from the node_modules dir:

https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/tests/mocha/webdriver.js#L19-L22

The above is a patch for when multiple node_modules dirs exist (ie. one in root, and one in each of the packages/**/ directories, but the core issue remains: packages should have their paths resolved by the Node environment directly and not be hardcoded.

Activity

  1. maribethb commented on May 15, 2026

    @maribethb
    Contributor

    this is also an issue in the playground files which load script src directly out of hardcoded node_modules paths.

  2. moved this from Todo to In Progress in Blocklyon Jul 29, 2026
  3. moved this from In Progress to Done in Blocklyon Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions