Skip to content

Commit

Permalink
fix(e2e): refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
guzhongren committed May 8, 2024
1 parent e73dd1c commit de6617c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion frontend/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"globalSetup": "./global-setup.ts",
"setupFiles": ["./jest.polyfills.ts"],
"setupFilesAfterEnv": ["<rootDir>/__tests__/setupTests.ts"],
"testEnvironment": "<rootDir>/jsdom.extended.ts",
"testEnvironment": "jsdom",
"testRegex": "/__tests__/.*(test|spec)\\.(jsx?|tsx?|ts?)$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"moduleNameMapper": {
Expand Down
25 changes: 0 additions & 25 deletions frontend/jsdom.extended.ts

This file was deleted.

8 changes: 4 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"lint": "eslint -c .eslintrc.json ./ && prettier --check ./",
"fix": "eslint -c .eslintrc.json --fix && npx prettier --write . --ignore-unknown",
"audit": "npx audit-ci@^6 --config ./audit-ci.jsonc",
"test": "jest --env=jsdom",
"test:watch": "jest --env=jsdom --watchAll",
"coverage": "jest --env=jsdom --watchAll=false --coverage",
"coverage:silent": "jest --env=jsdom --watchAll=false --coverage --silent",
"test": "jest",
"test:watch": "jest --watchAll",
"coverage": "jest --watchAll=false --coverage",
"coverage:silent": "jest --watchAll=false --coverage --silent",
"pre-e2e": "./scripts/generate-config-files.sh",
"e2e": "pnpm exec playwright test",
"e2e:major": "pnpm run pre-e2e && pnpm exec playwright test /major-path --project='Google Chrome'",
Expand Down
1 change: 0 additions & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"__tests__/__mocks__/svgTransformer.ts",
"package.json",
"pnpm-lock.yaml",
"jsdom.extended.ts",
"jest.polyfills.ts"
],
"references": [{ "path": "./tsconfig.node.json" }, { "path": "./tsconfig.scripts.json" }]
Expand Down

0 comments on commit de6617c

Please sign in to comment.