Merge pull request #332 from blockscout/jest-setup
Jest setup
Showing
configs/envs/.env.jest
0 → 100644
configs/jest/globalSetup.ts
0 → 100644
jest.config.ts
0 → 100644
lib/link/link.test.ts
0 → 100644
... | @@ -21,7 +21,9 @@ | ... | @@ -21,7 +21,9 @@ |
"prepare": "husky install", | "prepare": "husky install", | ||
"format-svg": "./node_modules/.bin/svgo -r ./icons", | "format-svg": "./node_modules/.bin/svgo -r ./icons", | ||
"test-ct": "playwright test -c playwright-ct.config.ts", | "test-ct": "playwright test -c playwright-ct.config.ts", | ||
"test-docker": "docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.27.0-focal ./run-tests.sh" | "test-docker": "docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.27.0-focal ./run-tests.sh", | ||
"test:unit": "jest", | |||
"test:unit:watch": "jest --watch" | |||
}, | }, | ||
"dependencies": { | "dependencies": { | ||
"@chakra-ui/react": "2.3.1", | "@chakra-ui/react": "2.3.1", | ||
... | @@ -58,6 +60,8 @@ | ... | @@ -58,6 +60,8 @@ |
"@playwright/experimental-ct-react": "^1.26.1", | "@playwright/experimental-ct-react": "^1.26.1", | ||
"@svgr/webpack": "^6.5.1", | "@svgr/webpack": "^6.5.1", | ||
"@types/d3": "^7.4.0", | "@types/d3": "^7.4.0", | ||
"@testing-library/react": "^13.4.0", | |||
"@types/jest": "^29.2.0", | |||
"@types/node": "17.0.36", | "@types/node": "17.0.36", | ||
"@types/phoenix": "^1.5.4", | "@types/phoenix": "^1.5.4", | ||
"@types/react": "18.0.9", | "@types/react": "18.0.9", | ||
... | @@ -70,9 +74,14 @@ | ... | @@ -70,9 +74,14 @@ |
"eslint-plugin-import-helpers": "^1.2.1", | "eslint-plugin-import-helpers": "^1.2.1", | ||
"eslint-plugin-regexp": "^1.7.0", | "eslint-plugin-regexp": "^1.7.0", | ||
"husky": "^8.0.0", | "husky": "^8.0.0", | ||
"jest": "^29.2.1", | |||
"jest-environment-jsdom": "^29.2.1", | |||
"lint-staged": ">=10", | "lint-staged": ">=10", | ||
"mockdate": "^3.0.5", | |||
"playwright": "^1.26.1", | "playwright": "^1.26.1", | ||
"svgo": "^2.8.0", | "svgo": "^2.8.0", | ||
"ts-jest": "^29.0.3", | |||
"ts-node": "^10.9.1", | |||
"typescript": "4.7.2" | "typescript": "4.7.2" | ||
}, | }, | ||
"lint-staged": { | "lint-staged": { | ||
... | ... |
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment