Fix windows fast-glob usage in lint-deps test task
* Introduce normalize-path wherever we use fastGlob * CI: Update yarn version; install yarn via npm on windows * Add more logging to Grunt file spectron usage * Lock core.js to what it was resolving to before: 2.4.1 * test/index.html: Remove nonexistent test file * test/index.html: Remove missing registration.js * preload.js: Introduce client-side logging for load failures * Gruntfile: Introduce better debuggability if prod test fails * Reintroduce glob for searches inside asar
This commit is contained in:
parent
455c7449e3
commit
1726e1b77a
11 changed files with 497 additions and 440 deletions
|
@ -239,14 +239,23 @@ describe('Backup', () => {
|
|||
it('exports then imports to produce the same data we started with', async function thisNeeded() {
|
||||
this.timeout(6000);
|
||||
|
||||
const { attachmentsPath, fse, fastGlob, path, tmp } = window.test;
|
||||
const {
|
||||
attachmentsPath,
|
||||
fse,
|
||||
fastGlob,
|
||||
normalizePath,
|
||||
path,
|
||||
tmp,
|
||||
} = window.test;
|
||||
const {
|
||||
upgradeMessageSchema,
|
||||
loadAttachmentData,
|
||||
} = window.Signal.Migrations;
|
||||
|
||||
const staticKeyPair = await libsignal.KeyHelper.generateIdentityKeyPair();
|
||||
const attachmentsPattern = path.join(attachmentsPath, '**');
|
||||
const attachmentsPattern = normalizePath(
|
||||
path.join(attachmentsPath, '**')
|
||||
);
|
||||
|
||||
const OUR_NUMBER = '+12025550000';
|
||||
const CONTACT_ONE_NUMBER = '+12025550001';
|
||||
|
@ -528,7 +537,9 @@ describe('Backup', () => {
|
|||
console.log(
|
||||
'Backup test: Ensure that all attachments made it to backup dir'
|
||||
);
|
||||
const backupAttachmentPattern = path.join(backupDir, 'attachments/*');
|
||||
const backupAttachmentPattern = normalizePath(
|
||||
path.join(backupDir, 'attachments/*')
|
||||
);
|
||||
const backupAttachments = fastGlob.sync(backupAttachmentPattern);
|
||||
console.log({ backupAttachments });
|
||||
assert.strictEqual(ATTACHMENT_COUNT, backupAttachments.length);
|
||||
|
|
|
@ -433,7 +433,6 @@
|
|||
<script type="text/javascript" src="../js/reliable_trigger.js" data-cover></script>
|
||||
<script type="text/javascript" src="test.js"></script>
|
||||
|
||||
<script type='text/javascript' src='../js/registration.js' data-cover></script>
|
||||
<script type="text/javascript" src="../js/chromium.js" data-cover></script>
|
||||
<script type="text/javascript" src="../js/database.js" data-cover></script>
|
||||
<script type="text/javascript" src="../js/storage.js" data-cover></script>
|
||||
|
@ -477,7 +476,6 @@
|
|||
<script type="text/javascript" src="models/messages_test.js"></script>
|
||||
|
||||
<script type="text/javascript" src="libphonenumber_util_test.js"></script>
|
||||
<script type="text/javascript" src="conversation_controller_test.js"></script>
|
||||
<script type="text/javascript" src="storage_test.js"></script>
|
||||
<script type="text/javascript" src="keychange_listener_test.js"></script>
|
||||
<script type="text/javascript" src="reliable_trigger_test.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue