Skip to content

Commit

Permalink
📦️ chore: Add @synthetixio prefix to packages names
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Dec 2, 2023
1 parent 134e094 commit 092be81
Show file tree
Hide file tree
Showing 23 changed files with 40 additions and 40 deletions.
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "core",
"version": "1.0.0",
"name": "@synthetixio/synpress-core",
"version": "0.0.1",
"type": "module",
"exports": {
".": {
Expand Down
6 changes: 3 additions & 3 deletions packages/fixtures/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fixtures",
"version": "1.0.0",
"name": "@synthetixio/synpress-fixtures",
"version": "0.0.1",
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -28,8 +28,8 @@
"types:check": "tsc --noEmit"
},
"dependencies": {
"@synthetixio/synpress-core": "workspace:*",
"@viem/anvil": "^0.0.6",
"core": "workspace:*",
"fs-extra": "^11.1.1",
"zod": "^3.22.4"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/fixtures/src/fixtures/testWithSynpress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import type {
PlaywrightWorkerOptions
} from '@playwright/test'
import { chromium, test as base } from '@playwright/test'
import { defineWalletSetup } from '@synthetixio/synpress-core'
import { createTempContextDir, removeTempContextDir } from '@synthetixio/synpress-core'
import { CACHE_DIR_NAME, prepareExtension } from '@synthetixio/synpress-core'
import { type Anvil, type CreateAnvilOptions, createPool } from '@viem/anvil'
import { defineWalletSetup } from 'core'
import { createTempContextDir, removeTempContextDir } from 'core'
import { CACHE_DIR_NAME, prepareExtension } from 'core'
import fs from 'fs-extra'
import { getExtensionId } from '../utils/getExtensionId'

Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions wallets/metamask/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metamask",
"version": "1.0.0",
"name": "@synthetixio/synpress-metamask",
"version": "0.0.1",
"type": "module",
"exports": {
".": {
Expand All @@ -18,9 +18,9 @@
],
"scripts": {
"build": "pnpm run clean && pnpm run build:dist && pnpm run build:types",
"build:cache": "core test/e2e/wallet-setup",
"build:cache:headless": "core test/e2e/wallet-setup --headless",
"build:cache:headless:force": "core test/e2e/wallet-setup --headless --force",
"build:cache": "synpress-core test/e2e/wallet-setup",
"build:cache:headless": "synpress-core test/e2e/wallet-setup --headless",
"build:cache:headless:force": "synpress-core test/e2e/wallet-setup --headless --force",
"build:dist": "tsup --tsconfig tsconfig.build.json",
"build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
"clean": "rimraf dist types",
Expand All @@ -33,8 +33,8 @@
"types:check": "tsc --noEmit"
},
"dependencies": {
"core": "workspace:*",
"fixtures": "workspace:*",
"@synthetixio/synpress-core": "workspace:*",
"@synthetixio/synpress-fixtures": "workspace:*",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/src/prepareExtension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { downloadFile, ensureCacheDirExists, unzipArchive } from 'core'
import { downloadFile, ensureCacheDirExists, unzipArchive } from '@synthetixio/synpress-core'

export const DEFAULT_METAMASK_VERSION = '11.6.3'
export const EXTENSION_DOWNLOAD_URL = `https://github.com/MetaMask/metamask-extension/releases/download/v${DEFAULT_METAMASK_VERSION}/metamask-chrome-${DEFAULT_METAMASK_VERSION}.zip`
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/addNetwork.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { z } from 'zod'
import { MetaMask, unlockForFixture } from '../../../src'
import { waitFor } from '../../../src/utils/waitFor'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/addNewAccount.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/connectToDapp.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/lock.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/openSettings.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/openSidebarMenu.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/switchAccount.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/switchNetwork.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import Selectors from '../../../src/pages/HomePage/selectors'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import Selectors from '../../../src/pages/HomePage/selectors'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/metamask/unlock.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../../src'

import basicSetup from '../wallet-setup/basic.setup'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/testWithMetaMask.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { testWithSynpress } from 'fixtures'
import { testWithSynpress } from '@synthetixio/synpress-fixtures'
import { MetaMask, unlockForFixture } from '../../src'

import connectedSetup from './wallet-setup/connected.setup'
Expand Down
2 changes: 1 addition & 1 deletion wallets/metamask/test/e2e/wallet-setup/basic.setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineWalletSetup } from 'core'
import { defineWalletSetup } from '@synthetixio/synpress-core'
import { MetaMask } from '../../../src'

const SEED_PHRASE = 'test test test test test test test test test test test junk'
Expand Down
4 changes: 2 additions & 2 deletions wallets/metamask/test/e2e/wallet-setup/connected.setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineWalletSetup } from 'core'
import { getExtensionId } from 'fixtures'
import { defineWalletSetup } from '@synthetixio/synpress-core'
import { getExtensionId } from '@synthetixio/synpress-fixtures'
import { MetaMask } from '../../../src'

const SEED_PHRASE = 'test test test test test test test test test test test junk'
Expand Down
4 changes: 2 additions & 2 deletions wallets/metamask/test/unit/prepareExtension.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as core from 'core'
import * as core from '@synthetixio/synpress-core'
import { afterAll, afterEach, describe, expect, it, vi } from 'vitest'
import { DEFAULT_METAMASK_VERSION, EXTENSION_DOWNLOAD_URL, prepareExtension } from '../../src/prepareExtension'

const MOCK_CACHE_DIR_PATH = 'mockCacheDirPath'
const MOCK_EXTENSION_ARCHIVE_PATH = 'mockExtensionArchivePath'
const MOCK_EXTENSION_FINAL_PATH = 'mockExtensionFinalPath'

vi.mock('core', async () => {
vi.mock('@synthetixio/synpress-core', async () => {
return {
default: vi.fn(),
ensureCacheDirExists: vi.fn().mockImplementation(() => MOCK_CACHE_DIR_PATH),
Expand Down

0 comments on commit 092be81

Please sign in to comment.