Skip to content

Stop importing node modules directly in Mocha webdriver tests #9735

@grega

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions