Skip to content

Commit

Permalink
chore: remove legacy tests (toeverything#9183)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo authored Dec 17, 2024
1 parent 27d4aa7 commit b0e64fe
Show file tree
Hide file tree
Showing 79 changed files with 45 additions and 12,448 deletions.
4 changes: 1 addition & 3 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"**/bower_components/**",
"**/vendor/**",
"**/examples/**",
"**/__tests__/**",
"**/test/**",
"**/__fixtures__/**"
"**/__tests__/**"
],
"packageRules": [
{
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ packages/backend/server/src/base/error/errors.gen.ts
packages/frontend/i18n/src/i18n-generated.ts
packages/frontend/i18n/src/i18n-completenesses.json
packages/frontend/graphql/src/graphql/index.ts
tests/affine-legacy/**/static
.yarnrc.yml
packages/frontend/templates/*.gen.ts
packages/frontend/templates/onboarding
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"tools/*",
"docs/reference",
"tools/@types/*",
"tests/*",
"tests/affine-legacy/*"
"tests/*"
],
"engines": {
"node": "<21.0.0"
Expand All @@ -24,7 +23,6 @@
"build:electron": "yarn nx build @affine/electron",
"build:server-native": "yarn nx run-many -t build -p @affine/server-native",
"start:web-static": "yarn workspace @affine/web static-server",
"serve:test-static": "yarn exec serve tests/fixtures --cors -p 8081",
"lint:eslint": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --report-unused-disable-directives-severity=off . --cache",
"lint:eslint:fix": "yarn lint:eslint --fix",
"lint:prettier": "prettier --ignore-unknown --cache --check .",
Expand Down
3 changes: 0 additions & 3 deletions packages/backend/server/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"rootDir": "."
},
"references": [
{
"path": "../../../tests/fixtures"
},
{
"path": "../../../tests/kit"
}
Expand Down
1 change: 0 additions & 1 deletion packages/common/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"zod": "^3.24.1"
},
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*",
"@emotion/react": "^11.14.0",
"@swc/core": "^1.10.1",
Expand Down
7 changes: 1 addition & 6 deletions packages/common/infra/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@
"outDir": "lib",
"noEmit": false
},
"include": ["vite.config.ts"],
"references": [
{
"path": "../../../tests/fixtures"
}
]
"include": ["vite.config.ts"]
}
4 changes: 1 addition & 3 deletions packages/frontend/component/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
},
{
"path": "../../common/infra"
},

{ "path": "../../../tests/fixtures" }
}
]
}
1 change: 1 addition & 0 deletions packages/frontend/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Autogenerated GraphQL client for affine.pro",
"license": "MIT",
"type": "module",
"private": true,
"main": "./src/index.ts",
"module": "./src/index.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@affine/i18n",
"description": "",
"type": "module",
"private": true,
"main": "src/index.ts",
"exports": {
".": "./src/index.ts"
Expand Down
10 changes: 0 additions & 10 deletions tests/affine-cloud-copilot/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ const config: PlaywrightTestConfig = {
retries: 3,
reporter: process.env.CI ? 'github' : 'list',
webServer: [
{
command: 'yarn run serve:test-static',
port: 8081,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
env: {
COVERAGE: process.env.COVERAGE || 'false',
ENABLE_DEBUG_PAGE: '1',
},
},
// Intentionally not building the web, reminds you to run it by yourself.
{
command: 'yarn -T run start:web-static',
Expand Down
3 changes: 0 additions & 3 deletions tests/affine-cloud-copilot/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"references": [
{
"path": "../../tests/kit"
},
{
"path": "../../tests/fixtures"
}
]
}
2 changes: 1 addition & 1 deletion tests/affine-cloud/e2e/share-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ test('image preview should be shown', async ({ page, browser }) => {
const title = getBlockSuiteEditorTitle(page);
await title.click();
await page.keyboard.press('Enter');
await importImage(page, 'http://localhost:8081/large-image.png');
await importImage(page, 'large-image.png');

// enable share page and copy page link
await enableShare(page);
Expand Down
10 changes: 0 additions & 10 deletions tests/affine-cloud/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ const config: PlaywrightTestConfig = {
retries: process.env.COPILOT ? 1 : 3,
reporter: process.env.CI ? 'github' : 'list',
webServer: [
{
command: 'yarn run serve:test-static',
port: 8081,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
env: {
COVERAGE: process.env.COVERAGE || 'false',
ENABLE_DEBUG_PAGE: '1',
},
},
// Intentionally not building the web, reminds you to run it by yourself.
{
command: 'yarn -T run start:web-static',
Expand Down
3 changes: 0 additions & 3 deletions tests/affine-cloud/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"references": [
{
"path": "../../tests/kit"
},
{
"path": "../../tests/fixtures"
}
]
}
3 changes: 0 additions & 3 deletions tests/affine-desktop-cloud/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"references": [
{
"path": "../../tests/kit"
},
{
"path": "../../tests/fixtures"
}
]
}
3 changes: 0 additions & 3 deletions tests/affine-desktop/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
{
"path": "../../tests/kit"
},
{
"path": "../../tests/fixtures"
},
{
"path": "../../packages/frontend/electron-api"
}
Expand Down
4 changes: 0 additions & 4 deletions tests/affine-legacy/0.6.1-beta.1/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions tests/affine-legacy/0.6.1-beta.1/README.md

This file was deleted.

36 changes: 0 additions & 36 deletions tests/affine-legacy/0.6.1-beta.1/e2e/basic.spec.ts

This file was deleted.

17 changes: 0 additions & 17 deletions tests/affine-legacy/0.6.1-beta.1/package.json

This file was deleted.

41 changes: 0 additions & 41 deletions tests/affine-legacy/0.6.1-beta.1/playwright.config.ts

This file was deleted.

16 changes: 0 additions & 16 deletions tests/affine-legacy/0.6.1-beta.1/tsconfig.json

This file was deleted.

4 changes: 0 additions & 4 deletions tests/affine-legacy/0.7.0-canary.18/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions tests/affine-legacy/0.7.0-canary.18/README.md

This file was deleted.

33 changes: 0 additions & 33 deletions tests/affine-legacy/0.7.0-canary.18/e2e/basic.spec.ts

This file was deleted.

17 changes: 0 additions & 17 deletions tests/affine-legacy/0.7.0-canary.18/package.json

This file was deleted.

Loading

0 comments on commit b0e64fe

Please sign in to comment.