Skip to content

Commit

Permalink
Remove vite-plugin-node-polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
hieu-w committed Jan 2, 2025
1 parent 90b8254 commit ca3d060
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 233 deletions.
226 changes: 0 additions & 226 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"rimraf": "^6.0.1",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"vite-plugin-node-polyfills": "^0.22.0",
"vitest": "^2.1.8"
},
"author": "Torus Labs",
Expand Down
2 changes: 2 additions & 0 deletions test/configs/browserSetup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { Buffer } from "buffer";
window.Buffer = Buffer;
4 changes: 2 additions & 2 deletions test/configs/chrome.config.mts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { nodePolyfills } from "vite-plugin-node-polyfills";
import { defineConfig } from "vitest/config";

export default defineConfig({
plugins: [nodePolyfills({ include: ["buffer"] })],
test: {
setupFiles: ["./test/configs/browserSetup.ts"],
reporters: "verbose",
browser: {
screenshotFailures: false,
headless: true,
provider: "playwright",
name: "chromium",
enabled: true,
testerHtmlPath: "./test/test.html",
},
coverage: {
reporter: ["text"],
Expand Down
4 changes: 2 additions & 2 deletions test/configs/firefox.config.mts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { nodePolyfills } from "vite-plugin-node-polyfills";
import { defineConfig } from "vitest/config";

export default defineConfig({
plugins: [nodePolyfills({ include: ["buffer"] })],
test: {
setupFiles: ["./test/configs/browserSetup.ts"],
reporters: "verbose",
browser: {
screenshotFailures: false,
headless: true,
provider: "playwright",
name: "firefox",
enabled: true,
testerHtmlPath: "./test/test.html",
},
coverage: {
reporter: ["text"],
Expand Down
4 changes: 2 additions & 2 deletions test/configs/safari.config.mts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { nodePolyfills } from "vite-plugin-node-polyfills";
import { defineConfig } from "vitest/config";

export default defineConfig({
plugins: [nodePolyfills({ include: ["buffer"] })],
test: {
setupFiles: ["./test/configs/browserSetup.ts"],
reporters: "verbose",
browser: {
screenshotFailures: false,
headless: true,
provider: "playwright",
name: "webkit",
enabled: true,
testerHtmlPath: "./test/test.html",
},
coverage: {
reporter: ["text"],
Expand Down
Loading

0 comments on commit ca3d060

Please sign in to comment.