diff --git a/packages/cache/test/createCache.test.ts b/packages/cache/test/createCache.test.ts index b198ce6d3..2649b9913 100644 --- a/packages/cache/test/createCache.test.ts +++ b/packages/cache/test/createCache.test.ts @@ -1,10 +1,10 @@ import { afterAll, afterEach, describe, expect, it, vi } from 'vitest' import path from 'node:path' -import * as GetUniqueWalletSetupFunctions from '../src/utils/getUniqueWalletSetupFunctions' -import * as TriggerCacheCreation from '../src/utils/triggerCacheCreation' import type { BrowserContext, Page } from 'playwright-core' import { createCache } from '../src/createCache' +import * as GetUniqueWalletSetupFunctions from '../src/utils/getUniqueWalletSetupFunctions' +import * as TriggerCacheCreation from '../src/utils/triggerCacheCreation' const ROOT_DIR = '/tmp' diff --git a/packages/cache/test/downloadFile.test.ts b/packages/cache/test/downloadFile.test.ts index 03b7cc842..ff30149ea 100644 --- a/packages/cache/test/downloadFile.test.ts +++ b/packages/cache/test/downloadFile.test.ts @@ -149,4 +149,4 @@ describe('downloadFile', () => { expect(axiosGetSpy).toHaveBeenCalledOnce() }) }) -}) \ No newline at end of file +}) diff --git a/packages/cache/test/ensureCacheDirExists.test.ts b/packages/cache/test/ensureCacheDirExists.test.ts index 2d8da83dc..073fbd0d9 100644 --- a/packages/cache/test/ensureCacheDirExists.test.ts +++ b/packages/cache/test/ensureCacheDirExists.test.ts @@ -1,8 +1,8 @@ import path from 'node:path' -import { CACHE_DIR_NAME } from '../src' -import { ensureCacheDirExists } from '../src/ensureCacheDirExists' import fs from 'fs-extra' import { afterAll, afterEach, describe, expect, it, vi } from 'vitest' +import { CACHE_DIR_NAME } from '../src' +import { ensureCacheDirExists } from '../src/ensureCacheDirExists' vi.mock('fs-extra', async () => { return { diff --git a/packages/cache/test/unzipArchive.test.ts b/packages/cache/test/unzipArchive.test.ts index 14cc36a11..9e89903f1 100644 --- a/packages/cache/test/unzipArchive.test.ts +++ b/packages/cache/test/unzipArchive.test.ts @@ -139,4 +139,4 @@ describe('unzipArchive', () => { expect(fs.readFileSync(NESTED_FILE_OUTPUT_PATH, 'utf8')).toBe(ARCHIVE_CONTENTS[NESTED_FILE_NAME]) }) }) -}) \ No newline at end of file +}) diff --git a/packages/cache/test/utils/bytesToMegabytes.test.ts b/packages/cache/test/utils/bytesToMegabytes.test.ts index ee3347d08..43de55e84 100644 --- a/packages/cache/test/utils/bytesToMegabytes.test.ts +++ b/packages/cache/test/utils/bytesToMegabytes.test.ts @@ -1,5 +1,5 @@ -import { bytesToMegabytes } from "../../src" import { describe, expect, it } from 'vitest' +import { bytesToMegabytes } from '../../src' describe('bytesToMegabytes', () => { it('converts bytes to megabytes and rounds the result', async () => { diff --git a/packages/cache/test/utils/createCacheForWalletSetupFunction.test.ts b/packages/cache/test/utils/createCacheForWalletSetupFunction.test.ts index ced56537c..5d381a790 100644 --- a/packages/cache/test/utils/createCacheForWalletSetupFunction.test.ts +++ b/packages/cache/test/utils/createCacheForWalletSetupFunction.test.ts @@ -1,7 +1,7 @@ -import { createCacheForWalletSetupFunction } from '../../src' -import * as WaitForExtensionOnLoadPage from '../../src/utils/waitForExtensionOnLoadPage' import { chromium } from 'playwright-core' import { afterAll, afterEach, beforeAll, describe, expect, it, vi } from 'vitest' +import { createCacheForWalletSetupFunction } from '../../src' +import * as WaitForExtensionOnLoadPage from '../../src/utils/waitForExtensionOnLoadPage' const EXTENSION_PATH = '/tmp/extension' const CONTEXT_PATH = '/tmp/context' diff --git a/packages/cache/test/utils/createTempContextDir.test.ts b/packages/cache/test/utils/createTempContextDir.test.ts index af7dbffdd..bb897f715 100644 --- a/packages/cache/test/utils/createTempContextDir.test.ts +++ b/packages/cache/test/utils/createTempContextDir.test.ts @@ -67,4 +67,4 @@ describe('createTempContextDir', () => { expect(fs.readdirSync(ROOT_DIR)).toHaveLength(1) expect(fs.existsSync(tempDirPath)).toBeTruthy() }) -}) \ No newline at end of file +}) diff --git a/packages/cache/test/utils/getUniqueWalletSetupFunctions.test.ts b/packages/cache/test/utils/getUniqueWalletSetupFunctions.test.ts index 1d69ff3a2..4a27eb4bf 100644 --- a/packages/cache/test/utils/getUniqueWalletSetupFunctions.test.ts +++ b/packages/cache/test/utils/getUniqueWalletSetupFunctions.test.ts @@ -1,5 +1,5 @@ -import { getUniqueWalletSetupFunctions } from "../../src" import { afterAll, describe, expect, it, vi } from 'vitest' +import { getUniqueWalletSetupFunctions } from '../../src' vi.mock('../../src/utils/getWalletSetupFiles', async () => { return { diff --git a/packages/cache/test/utils/getWalletSetupFiles.test.ts b/packages/cache/test/utils/getWalletSetupFiles.test.ts index 41643b794..85fca2c4b 100644 --- a/packages/cache/test/utils/getWalletSetupFiles.test.ts +++ b/packages/cache/test/utils/getWalletSetupFiles.test.ts @@ -75,4 +75,4 @@ describe('getWalletSetupFiles', () => { expect(setupFiles).toContain('quack.setup.js') expect(setupFiles).toContain('quack.setup.mjs') }) -}) \ No newline at end of file +}) diff --git a/packages/cache/test/utils/getWalletSetupFuncHash.test.ts b/packages/cache/test/utils/getWalletSetupFuncHash.test.ts index 1045400ab..5ed6b9488 100644 --- a/packages/cache/test/utils/getWalletSetupFuncHash.test.ts +++ b/packages/cache/test/utils/getWalletSetupFuncHash.test.ts @@ -1,5 +1,5 @@ -import { WALLET_SETUP_FUNC_HASH_LENGTH, getWalletSetupFuncHash } from '../../src' import { describe, expect, it } from 'vitest' +import { WALLET_SETUP_FUNC_HASH_LENGTH, getWalletSetupFuncHash } from '../../src' const EXPECTED_HASH = 'b940c886be3c1a041ddd' diff --git a/packages/cache/test/utils/importWalletSetupFile.test.ts b/packages/cache/test/utils/importWalletSetupFile.test.ts index 573379ca5..cdd35adad 100644 --- a/packages/cache/test/utils/importWalletSetupFile.test.ts +++ b/packages/cache/test/utils/importWalletSetupFile.test.ts @@ -1,5 +1,5 @@ -import { importWalletSetupFile } from "../../src" import { afterAll, describe, expect, it, vi } from 'vitest' +import { importWalletSetupFile } from '../../src' vi.mock('../../src/ensureCacheDirExists', async () => { return { diff --git a/packages/cache/test/utils/isDirEmpty.test.ts b/packages/cache/test/utils/isDirEmpty.test.ts index 37a1fbd8c..b83b78d91 100644 --- a/packages/cache/test/utils/isDirEmpty.test.ts +++ b/packages/cache/test/utils/isDirEmpty.test.ts @@ -41,4 +41,4 @@ describe('isDirEmpty', () => { const isEmpty = await isDirEmpty(ROOT_DIR) expect(isEmpty).toEqual(false) }) -}) \ No newline at end of file +}) diff --git a/packages/cache/test/utils/removeTempContextDir.test.ts b/packages/cache/test/utils/removeTempContextDir.test.ts index 021db1411..5c03145ae 100644 --- a/packages/cache/test/utils/removeTempContextDir.test.ts +++ b/packages/cache/test/utils/removeTempContextDir.test.ts @@ -1,5 +1,5 @@ -import { removeTempContextDir } from "../../src" import { afterAll, describe, expect, it, vi } from 'vitest' +import { removeTempContextDir } from '../../src' const PATH = 'Happy Quack Path' const MAX_RETRIES = 10 diff --git a/packages/cache/test/utils/triggerCacheCreation.test.ts b/packages/cache/test/utils/triggerCacheCreation.test.ts index 0beb7c2b9..acd067ea3 100644 --- a/packages/cache/test/utils/triggerCacheCreation.test.ts +++ b/packages/cache/test/utils/triggerCacheCreation.test.ts @@ -185,4 +185,4 @@ describe('triggerCacheCreation', () => { expectCreateCacheForWalletSetupFunction(3, setupFunctions, 'hash3') }) }) -}) \ No newline at end of file +}) diff --git a/packages/cache/test/utils/waitForExtensionOnLoadPage.test.ts b/packages/cache/test/utils/waitForExtensionOnLoadPage.test.ts index 42a881683..2f9b4e01f 100644 --- a/packages/cache/test/utils/waitForExtensionOnLoadPage.test.ts +++ b/packages/cache/test/utils/waitForExtensionOnLoadPage.test.ts @@ -1,6 +1,6 @@ -import { waitForExtensionOnLoadPage } from '../../src/utils/waitForExtensionOnLoadPage' import { errors as playwrightErrors } from 'playwright-core' import { afterAll, afterEach, describe, expect, it, vi } from 'vitest' +import { waitForExtensionOnLoadPage } from '../../src/utils/waitForExtensionOnLoadPage' const createContext = vi.fn().mockReturnValue({ waitForEvent: vi.fn().mockResolvedValue(undefined)