Skip to content

Commit 5c5df1f

Browse files
author
kim
committed
refactor: remove cypress
1 parent cd4e31f commit 5c5df1f

File tree

12 files changed

+65
-1376
lines changed

12 files changed

+65
-1376
lines changed

.github/workflows/cypress.yml

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

cypress.config.ts

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

cypress/tsconfig.json

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

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export default [
3939
'airbnb-typescript',
4040
'plugin:import/typescript',
4141
'prettier',
42-
'plugin:cypress/recommended',
4342
'plugin:react/recommended',
4443
'plugin:react-hooks/recommended',
4544
'plugin:@typescript-eslint/recommended',

package.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"author": "Graasp",
66
"contributors": [
77
"Basile Spaenlehauer",
8-
"Jérémy La Scala"
8+
"Jérémy La Scala",
9+
"Kim Lan Phan Hoang"
910
],
1011
"homepage": ".",
1112
"type": "module",
@@ -41,22 +42,17 @@
4142
"preview:test": "yarn vite preview --mode test",
4243
"postinstall": "husky install",
4344
"lint": "eslint .",
44-
"prettier:write": "prettier {src,cypress}/**/*.{ts,tsx,js,jsx} --write",
45-
"prettier:check": "prettier {src,cypress}/**/*.{ts,tsx,js,jsx} --check",
45+
"prettier:write": "prettier src/**/*.{ts,tsx,js,jsx} --write",
46+
"prettier:check": "prettier src/**/*.{ts,tsx,js,jsx} --check",
4647
"type-check": "tsc --noEmit",
4748
"check": "yarn lint && yarn prettier:check && yarn type-check",
4849
"hooks:install": "husky install",
4950
"hooks:uninstall": "husky uninstall",
50-
"pre-commit": "yarn prettier:check && yarn lint",
51-
"cypress:open": "env-cmd -f ./.env.test cypress open",
52-
"test": "concurrently -k -s first \"yarn start:test\" \"yarn test:ci\" ",
53-
"test:ci": "env-cmd -f ./.env.test cypress run --browser chrome --headless && nyc report --reporter=text --reporter=text-summary",
54-
"cov:report": "open ./coverage/lcov-report/index.html"
51+
"pre-commit": "yarn prettier:check && yarn lint"
5552
},
5653
"devDependencies": {
5754
"@commitlint/cli": "19.8.0",
5855
"@commitlint/config-conventional": "19.8.0",
59-
"@cypress/code-coverage": "3.14.0",
6056
"@eslint/compat": "^1.2.0",
6157
"@eslint/eslintrc": "^3.1.0",
6258
"@eslint/js": "^9.12.0",
@@ -69,15 +65,13 @@
6965
"@vitejs/plugin-react": "^4.4.0",
7066
"axios": "1.7.7",
7167
"concurrently": "8.2.2",
72-
"cypress": "14.3.0",
7368
"env-cmd": "10.1.0",
7469
"eslint": "8.57.1",
7570
"eslint-config-airbnb": "19.0.4",
7671
"eslint-config-airbnb-typescript": "^18.0.0",
7772
"eslint-config-prettier": "9.1.0",
7873
"eslint-config-react-app": "7.0.1",
7974
"eslint-import-resolver-typescript": "^3.6.1",
80-
"eslint-plugin-cypress": "2.15.2",
8175
"eslint-plugin-import": "2.30.0",
8276
"eslint-plugin-jsx-a11y": "6.10.0",
8377
"eslint-plugin-prettier": "5.2.1",

renovate.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"github>graasp/renovate-config:app"
5-
],
3+
"extends": ["github>graasp/renovate-config:app"],
64
"packageRules": [
75
{
86
"matchDepTypes": ["devDependencies"],
9-
"matchPackagePatterns": ["lint", "prettier", "vite", "cypress", "commitlint", "axios", "concurrently", "env"],
7+
"matchPackagePatterns": [
8+
"lint",
9+
"prettier",
10+
"vite",
11+
"commitlint",
12+
"axios",
13+
"concurrently",
14+
"env"
15+
],
1016
"automerge": true
1117
},
1218
{
13-
"matchUpdateTypes": ["minor","patch"],
19+
"matchUpdateTypes": ["minor", "patch"],
1420
"matchCurrentVersion": "!/^0/",
1521
"automerge": true
1622
}

src/config/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const {
44
VITE_SENTRY_ENV,
55
VITE_SENTRY_DSN,
66
VITE_API_HOST,
7-
} = globalThis.Cypress ? Cypress.env() : import.meta.env;
7+
} = import.meta.env;
88

99
export const API_HOST = VITE_API_HOST;
1010
export const VERSION = VITE_VERSION || 'latest';

src/modules/components/graphs/useMergedLogs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const useMergedLogs = ({
2020
const { data: time } = useTime();
2121

2222
const deathTimeNames = groupby(deathLog, (dt) => dt.name);
23-
const deathTimes = Object.entries(deathTimeNames).map(([k, v]) => v[0]);
23+
const deathTimes = Object.entries(deathTimeNames).map(([_k, v]) => v[0]);
2424

2525
const slicedData = log
2626
.filter(({ t: value }) =>

tsconfig.eslint.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
"include": [
44
"vite.config.ts",
55
"eslint.config.mjs",
6-
"cypress.config.ts",
76
"src/**/*.tsx",
87
"src/**/*.ts",
9-
"test/**/*.ts",
10-
"cypress/**/*.ts"
8+
"test/**/*.ts"
119
]
1210
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"noEmit": true,
1717
"jsx": "react-jsx",
1818
"typeRoots": ["node_modules", "node_modules/@types", "./src/@types"],
19-
"types": ["vite/client", "cypress"],
19+
"types": ["vite/client"],
2020
"baseUrl": "./src",
2121
"paths": {
2222
"@/*": ["./*"]

0 commit comments

Comments
 (0)