Skip to content

Commit

Permalink
chore: Improve test coverage (#2903)
Browse files Browse the repository at this point in the history
* improve test coverage

* fix test:build
  • Loading branch information
shuding authored Feb 25, 2024
1 parent 2ec893d commit b103154
Show file tree
Hide file tree
Showing 12 changed files with 942 additions and 561 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"csb:build": "pnpm build",
"clean": "rimraf ./dist && rimraf playwright-report test-result",
"watch": "pnpm -r run watch",
"build": "bunchee",
"build": "__SWR_TEST_REACT_LEGACY='' __SWR_TEST_SERVER='' bunchee --env=__SWR_TEST_REACT_LEGACY,__SWR_TEST_SERVER",
"build:e2e": "pnpm next build e2e/site",
"attw": "attw --pack",
"types:check": "tsc --noEmit",
Expand All @@ -116,7 +116,7 @@
"test-typing": "tsc --noEmit -p test/type/tsconfig.json && tsc --noEmit -p test/tsconfig.json",
"test": "jest",
"test-canary": "REACT_CANARY=1 jest",
"test:build": "jest --config jest.config.build.js",
"test:build": "__SWR_TEST_BUILD=1 jest --config jest.config.build.js",
"test:e2e": "playwright test",
"run-all-checks": "pnpm types:check && pnpm lint && pnpm test-typing"
},
Expand Down Expand Up @@ -148,8 +148,8 @@
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-testing-library": "5.11.0",
"husky": "8.0.3",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "13.2.2",
"next": "14.1.0",
"prettier": "2.8.8",
Expand Down
Loading

0 comments on commit b103154

Please sign in to comment.