Skip to content

Commit 6c507c2

Browse files
committed
refactor: remove legacy integration tests
1 parent 41ec75c commit 6c507c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+139
-2304
lines changed

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
- name: Build prod
1717
run: yarn build
1818

19-
- name: Run jest
20-
run: yarn test:unit --coverage
21-
2219
- name: Make badge maker
2320
run: npx make-coverage-badge
2421

.github/workflows/integration-tests.yml

Lines changed: 0 additions & 85 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ web-ext-artifacts/
1515
.yalc/
1616
yalc.lock
1717
coverage
18-
.jest-cache
1918
release_body.md
2019
trace*
2120
/test-results/

global-playwright-setup.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

jest.config.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

jest.integration.config.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

package.json

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,15 @@
2222
"lint:eslint": "eslint \"src/**/*.{ts,tsx}\"",
2323
"lint:filename": "ls-lint",
2424
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
25-
"lint:prettier": "prettier --check \"{src,tests,tests-legacy}/**/*.{ts,tsx}\" \"*.{js,json}\"",
26-
"lint:prettier:fix": "prettier --write \"{src,tests,tests-legacy}/**/*.{ts,tsx}\" *.js",
25+
"lint:prettier": "prettier --check \"{src,tests}/**/*.{ts,tsx}\" \"*.{js,json}\"",
26+
"lint:prettier:fix": "prettier --write \"{src,tests}/**/*.{ts,tsx}\" *.js",
2727
"lint:unused-exports": "ts-unused-exports tsconfig.json --ignoreFiles=leather-styles",
2828
"lint:remote-wallet-config": "npx ajv-cli validate -s config/wallet-config.schema.json -d config/wallet-config.json",
2929
"lint:deps": "dependency-cruise --config .dependency-cruiser.js \"src/**/*.{ts,tsx}\"",
3030
"prod:ext": "yarn build",
3131
"prod:analyze": "cross-env WALLET_ENVIRONMENT=production ANALYZE=true webpack -p",
32-
"test:integration": "jest --config=./jest.integration.config.js --verbose=true --runInBand --testPathPattern=./tests-legacy/integration/*",
33-
"test:integration:ci": "jest --config=./jest.integration.config.js --testPathPattern=./tests-legacy/integration/*",
34-
"test:integration-api": "jest --config=./jest.integration.config.js --verbose=true --runInBand --testPathPattern=./tests-legacy/test-api/*",
35-
"test:integration-api:ci": "jest --config=./jest.integration.config.js --testPathPattern=./tests-legacy/test-api/*",
32+
"test:integration": "playwright test",
3633
"test:unit": "vitest run",
37-
"test": "WALLET_ENVIRONMENT=testing jest --verbose=true",
3834
"test:coverage": "WALLET_ENVIRONMENT=testing jest --collect-coverage",
3935
"test:watch": "WALLET_ENVIRONMENT=testing jest --watch",
4036
"typecheck": "tsc --noEmit",
@@ -146,22 +142,22 @@
146142
"@segment/analytics-next": "1.56.0",
147143
"@sentry/react": "7.72.0",
148144
"@sentry/tracing": "7.72.0",
149-
"@stacks/auth": "6.5.4",
145+
"@stacks/auth": "6.9.0",
150146
"@stacks/blockchain-api-client": "6.3.4",
151-
"@stacks/common": "6.5.2",
152-
"@stacks/connect": "7.2.1",
153-
"@stacks/connect-ui": "6.0.0",
154-
"@stacks/encryption": "6.5.4",
155-
"@stacks/network": "6.5.4",
156-
"@stacks/profile": "6.5.4",
147+
"@stacks/common": "6.8.1",
148+
"@stacks/connect": "7.4.0",
149+
"@stacks/connect-ui": "6.1.1",
150+
"@stacks/encryption": "6.9.0",
151+
"@stacks/network": "6.8.1",
152+
"@stacks/profile": "6.9.0",
157153
"@stacks/rpc-client": "1.0.3",
158-
"@stacks/storage": "6.5.4",
154+
"@stacks/storage": "6.9.0",
159155
"@stacks/transactions": "6.9.0",
160156
"@stacks/ui": "7.10.0",
161157
"@stacks/ui-core": "7.3.0",
162158
"@stacks/ui-theme": "7.5.0",
163159
"@stacks/ui-utils": "7.5.0",
164-
"@stacks/wallet-sdk": "6.5.4",
160+
"@stacks/wallet-sdk": "6.9.0",
165161
"@stitches/react": "1.2.8",
166162
"@styled-system/theme-get": "5.1.2",
167163
"@tanstack/query-sync-storage-persister": "4.35.3",
@@ -250,11 +246,9 @@
250246
"@redux-devtools/remote": "0.8.1",
251247
"@schemastore/web-manifest": "0.0.6",
252248
"@sentry/webpack-plugin": "2.4.0",
253-
"@stacks/connect-react": "22.1.1",
249+
"@stacks/connect-react": "22.2.0",
254250
"@stacks/prettier-config": "0.0.10",
255251
"@stacks/stacks-blockchain-api-types": "6.3.4",
256-
"@swc-node/jest": "1.5.6",
257-
"@swc/core": "1.3.32",
258252
"@trivago/prettier-plugin-sort-imports": "4.2.0",
259253
"@types/argon2-browser": "1.18.2",
260254
"@types/chroma-js": "2.4.1",
@@ -263,8 +257,6 @@
263257
"@types/download": "8.0.2",
264258
"@types/expect-puppeteer": "5.0.3",
265259
"@types/html-webpack-plugin": "3.2.7",
266-
"@types/jest": "29.2.6",
267-
"@types/jest-dev-server": "5.0.0",
268260
"@types/jsdom": "21.1.1",
269261
"@types/lodash.get": "4.4.7",
270262
"@types/node": "20.7.1",
@@ -310,10 +302,6 @@
310302
"file-loader": "6.2.0",
311303
"generate-json-webpack-plugin": "2.0.0",
312304
"html-webpack-plugin": "5.5.3",
313-
"jest": "29.3.1",
314-
"jest-chrome": "0.8.0",
315-
"jest-circus": "29.3.1",
316-
"jest-dev-server": "6.2.0",
317305
"jsdom": "22.1.0",
318306
"postcss": "8.4.30",
319307
"postcss-loader": "7.3.3",
@@ -326,7 +314,6 @@
326314
"speed-measure-webpack-plugin": "1.5.0",
327315
"stream-browserify": "3.0.0",
328316
"svg-url-loader": "8.0.0",
329-
"ts-jest": "29.0.5",
330317
"ts-node": "10.9.1",
331318
"ts-unused-exports": "7.0.3",
332319
"tsconfig-paths-webpack-plugin": "4.0.1",

playwright.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import { defineConfig, devices } from '@playwright/test';
44
* See https://playwright.dev/docs/test-configuration
55
*/
66
export default defineConfig({
7-
globalSetup: './global-playwright-setup.js',
7+
globalSetup: './tests/global-playwright-setup.js',
88
testDir: './tests',
99
timeout: 30 * 1000,
10-
expect: {
11-
timeout: 5000,
12-
},
10+
expect: { timeout: 5000 },
1311
fullyParallel: true,
1412
forbidOnly: !!process.env.CI,
1513
retries: process.env.CI ? 2 : 0,

src/app/common/transactions/stacks/generate-unsigned-txs.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PostConditionMode } from '@stacks/transactions';
2-
import { generateContractCallToken } from '@tests-legacy/utils/transation-test-utils';
2+
import { generateContractCallToken } from '@tests/transation-test-utils';
33
import { decodeToken } from 'jsontokens';
44

55
import { generateUnsignedTransaction } from './generate-unsigned-txs';

src/app/components/crypto-assets/crypto-currency-asset/asset-copy-icon.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { FiCheck, FiCopy } from 'react-icons/fi';
22

33
import { Box, Flex, color } from '@stacks/ui';
4-
import { UserAreaSelectors } from '@tests-legacy/integration/user-area.selectors';
54

65
interface AssetItemCopyIconProps {
76
hasCopied: boolean;
@@ -13,7 +12,7 @@ export function AssetItemCopyIcon({ hasCopied }: AssetItemCopyIconProps) {
1312
<Box
1413
size="16px"
1514
color={color('text-caption')}
16-
data-testid={UserAreaSelectors.AccountCopyAddress}
15+
data-testid="account-copy-address"
1716
as={hasCopied ? FiCheck : FiCopy}
1817
mt="2px"
1918
/>

0 commit comments

Comments
 (0)