mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Fix test extension archive search
This commit is contained in:
@@ -15,13 +15,10 @@ const chrome = require("selenium-webdriver/chrome");
|
|||||||
// Webdriver shorthands
|
// Webdriver shorthands
|
||||||
const { By, until } = webdriver;
|
const { By, until } = webdriver;
|
||||||
|
|
||||||
const { __extensionName, __extensionVersion } = require("../ext/package.json");
|
const extensionArchivePath = glob.sync("*.xpi", {
|
||||||
|
cwd: path.join(__dirname, "../dist/ext"),
|
||||||
const extensionArchivePath = path.join(
|
absolute: true
|
||||||
__dirname,
|
})[0];
|
||||||
"../dist/ext",
|
|
||||||
`${__extensionName}-${__extensionVersion}.xpi`
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!fs.existsSync(extensionArchivePath)) {
|
if (!fs.existsSync(extensionArchivePath)) {
|
||||||
console.error("Extension archive not found.");
|
console.error("Extension archive not found.");
|
||||||
|
|||||||
Reference in New Issue
Block a user