ArnaudBuchholz / ui5-test-runner

A test runner for UI5 applications enabling parallel execution of tests.
https://arnaudbuchholz.github.io/ui5-test-runner/
MIT License
18 stars 9 forks source link

Accessing the runner / may lead to exception #94

Closed ArnaudBuchholz closed 1 week ago

ArnaudBuchholz commented 1 week ago

Reproduced, this is because the following mapping matches / :

{
  // Project mapping
  match: /^\/(.*)/,
  cwd: job.webapp,
  file: '$1',
  static: !job.watch && !job.debugDevMode
},

But after interpolation, $1 is empty and it fails the file handler :

let filePath = /([^?#]+)/.exec(redirect)[1] // filter URL parameters & hash

because it does not match, it might be interesting to replace + with *

ArnaudBuchholz commented 1 week ago

https://github.com/ArnaudBuchholz/reserve/issues/99

ArnaudBuchholz commented 1 week ago

Fixed in reserve@2.0.2