Skip to content

Commit

Permalink
Update vitest 3 configs
Browse files Browse the repository at this point in the history
  • Loading branch information
hieu-w committed Jan 16, 2025
1 parent 7178512 commit 923bd5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 47 deletions.
13 changes: 5 additions & 8 deletions packages/fetch-node-details/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"prepack": "npm run build",
"test": "npm run test:node && npm run test:browsers",
"test:node": "vitest run --config test/configs/node.config.mts --coverage",
"test:chrome": "vitest run --config test/configs/chrome.config.mts",
"test:firefox": "vitest run --config test/configs/firefox.config.mts --coverage",
"test:safari": "vitest run --config test/configs/safari.config.mts --coverage",
"test:browsers": "npm run test:chrome && npm run test:firefox && npm run test:safari",
"test:browsers": "vitest run --config test/configs/browsers.config.mts --coverage",
"lint": "eslint --fix 'src/**/*.ts'"
},
"peerDependencies": {
Expand All @@ -30,7 +27,7 @@
"dependencies": {
"@toruslabs/constants": "^14.2.0",
"@toruslabs/fnd-base": "^14.2.0",
"@toruslabs/http-helpers": "^7.0.1",
"@toruslabs/http-helpers": "^8.0.0",
"loglevel": "^1.9.2"
},
"lint-staged": {
Expand Down Expand Up @@ -68,9 +65,9 @@
"access": "public"
},
"devDependencies": {
"@vitest/browser": "^2.1.8",
"@vitest/coverage-istanbul": "^2.1.8",
"@vitest/browser": "^3.0.0",
"@vitest/coverage-istanbul": "^3.0.0",
"playwright": "^1.49.1",
"vitest": "^2.1.8"
"vitest": "^3.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
screenshotFailures: false,
headless: true,
provider: "playwright",
name: "chromium",
enabled: true,
instances: [{ browser: "chromium" }, { browser: "firefox" }, { browser: "webkit" }],
},
coverage: {
reporter: ["text"],
Expand Down
19 changes: 0 additions & 19 deletions packages/fetch-node-details/test/configs/firefox.config.mts

This file was deleted.

19 changes: 0 additions & 19 deletions packages/fetch-node-details/test/configs/safari.config.mts

This file was deleted.

0 comments on commit 923bd5c

Please sign in to comment.