Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/asar-utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as path from 'path';

import { AsarMode, detectAsarMode, generateAsarIntegrity } from '../src/asar-utils';
import { describe, expect, it } from '@jest/globals';

const asarsPath = path.resolve(__dirname, 'fixtures', 'asars');
const appsPath = path.resolve(__dirname, 'fixtures', 'apps');
Expand Down
1 change: 1 addition & 0 deletions test/file-utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as path from 'path';

import { AppFile, AppFileType, getAllAppFiles } from '../src/file-utils';
import { beforeAll, describe, expect, it } from '@jest/globals';

const appsPath = path.resolve(__dirname, 'fixtures', 'apps');

Expand Down
1 change: 1 addition & 0 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as path from 'path';
import { makeUniversalApp } from '../dist/cjs/index';
import { createTestApp, templateApp, VERIFY_APP_TIMEOUT, verifyApp } from './util';
import { createPackage, createPackageWithOptions } from '@electron/asar';
import { afterEach, describe, expect, it } from '@jest/globals';

const appsPath = path.resolve(__dirname, 'fixtures', 'apps');
const appsOutPath = path.resolve(__dirname, 'fixtures', 'apps', 'out');
Expand Down
1 change: 1 addition & 0 deletions test/sha.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as path from 'path';

import { sha } from '../src/sha';
import { describe, expect, it } from '@jest/globals';

describe('sha', () => {
it('should correctly hash a file', async () => {
Expand Down
2 changes: 2 additions & 0 deletions test/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import plist from 'plist';
import * as fileUtils from '../dist/cjs/file-utils';
import { getRawHeader } from '@electron/asar';

declare const expect: typeof import('@jest/globals').expect;

// We do a LOT of verifications in `verifyApp` 😅
// exec universal binary -> verify ALL asars -> verify ALL app dirs -> verify ALL asar integrity entries
// plus some tests create fixtures at runtime
Expand Down