Preserve H5 flows while adding Taobao identity, native capture, reports and isolated local development. Fix canceled province selection and expired-session logout. Record passing local regressions, two pre-existing H5 assertion failures and pending platform validation.
13 lines
571 B
JavaScript
13 lines
571 B
JavaScript
// Resolve the repository's unmodified H5 browser tests against this project's
|
|
// local Playwright installation, instead of requiring a global npm install.
|
|
const cp = require('node:child_process'), path = require('node:path');
|
|
const original = cp.execSync;
|
|
cp.execSync = function (command, options) {
|
|
if (command === 'npm root -g') {
|
|
const value = path.resolve(__dirname, '../node_modules') + '\n';
|
|
return options && options.encoding ? value : Buffer.from(value);
|
|
}
|
|
return original.apply(this, arguments);
|
|
};
|
|
require('node:module').syncBuiltinESMExports();
|