Merge pull request #908 from blockscout/test/hook-for-paginated-queries
test: pagination refactoring and test
Showing
.vscode/launch.json
0 → 100644
jest/lib.tsx
0 → 100644
jest/mocks/next-router.ts
0 → 100644
jest/setup.ts
0 → 100644
jest/utils/flushPromises.ts
0 → 100644
... | ... | @@ -25,7 +25,7 @@ |
"lint:tsc": "./node_modules/.bin/tsc -p ./tsconfig.json", | ||
"prepare": "husky install", | ||
"format-svg": "./node_modules/.bin/svgo -r ./icons", | ||
"test:pw": "./playwright/make-envs-script.sh && NODE_OPTIONS=\"--max-old-space-size=4096\" playwright test -c playwright-ct.config.ts", | ||
"test:pw": "./playwright/make-envs-script.sh && NODE_OPTIONS=\"--max-old-space-size=4096\" ./node_modules/.bin/dotenv -e ./configs/envs/.env.pw -- playwright test -c playwright-ct.config.ts", | ||
"test:pw:local": "export NODE_PATH=$(pwd)/node_modules && rm -rf ./playwright/.cache && yarn test:pw", | ||
"test:pw:docker": "docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.32.0-focal ./playwright/run-tests.sh", | ||
"test:pw:ci": "yarn test:pw --project=$PW_PROJECT", | ||
... | ... | @@ -88,7 +88,7 @@ |
"devDependencies": { | ||
"@playwright/experimental-ct-react": "1.32.3", | ||
"@svgr/webpack": "^6.5.1", | ||
"@testing-library/react": "^13.4.0", | ||
"@testing-library/react": "^14.0.0", | ||
"@total-typescript/ts-reset": "^0.3.7", | ||
"@types/crypto-js": "^4.1.1", | ||
"@types/csp-dev": "^1.0.0", | ||
... | ... | @@ -120,6 +120,7 @@ |
"husky": "^8.0.0", | ||
"jest": "^29.2.1", | ||
"jest-environment-jsdom": "^29.2.1", | ||
"jest-fetch-mock": "^3.0.3", | ||
"lint-staged": ">=10", | ||
"mockdate": "^3.0.5", | ||
"next-transpile-modules": "^10.0.0", | ||
... | ... |
playwright/utils/app.ts
0 → 100644
tsconfig.jest.json
0 → 100644


























2.37 KB











