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.
When completing the recent documentation work (#9671 (comment)) it became apparent that the webdriver tests are directly importing from the
node_modulesdir:https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/tests/mocha/webdriver.js#L19-L22
The above is a patch for when multiple
node_modulesdirs exist (ie. one in root, and one in each of thepackages/**/directories, but the core issue remains: packages should have their paths resolved by the Node environment directly and not be hardcoded.