Files
juzi/taobao/test/legacy-playwright.cjs
T
xsl 9eec4369da feat(taobao): add native mini program with shared backend
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.
2026-10-19 20:14:31 +08:00

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();