|
24 | 24 | "@types/debug": "^4.1.12", |
25 | 25 | "@types/node": "^24.10.2", |
26 | 26 | "@types/streamx": "^2.9.5", |
27 | | - "@types/tape": "^5.8.1", |
28 | 27 | "@types/webrtc": "^0.0.47", |
| 28 | + "@vitest/browser": "^4.0.15", |
29 | 29 | "airtap": "^4.0.4", |
30 | 30 | "airtap-manual": "^1.0.0", |
31 | 31 | "airtap-system": "^0.1.0", |
32 | 32 | "babelify": "^10.0.0", |
33 | 33 | "bowser": "^2.11.0", |
34 | 34 | "cross-env": "^7.0.3", |
| 35 | + "happy-dom": "^20.0.11", |
35 | 36 | "prettier-bytes": "^1.0.4", |
36 | 37 | "speedometer": "^1.1.0", |
37 | 38 | "string-to-stream": "^3.0.1", |
38 | | - "tap-spec": "^5.0.0", |
39 | | - "tape": "^5.9.0", |
40 | 39 | "thunky": "^1.1.0", |
41 | 40 | "typescript": "^5.9.3", |
| 41 | + "vite": "^7.2.7", |
| 42 | + "vitest": "^4.0.15", |
42 | 43 | "ws": "^8.18.0" |
43 | 44 | }, |
44 | 45 | "keywords": [ |
|
81 | 82 | "url": "git://github.com/thaunknown/simple-peer.git" |
82 | 83 | }, |
83 | 84 | "scripts": { |
84 | | - "build": "tsc && cd test && npx tsc", |
| 85 | + "build": "tsc", |
85 | 86 | "prebuild": "rm -rf dist", |
86 | 87 | "prepublishOnly": "npm run build", |
87 | | - "test": "npm run build && npm run test:no-build", |
88 | | - "test:no-build": "npm run test-node && npm run test-browser", |
| 88 | + "test": "npm run build && vitest run", |
| 89 | + "test:watch": "vitest", |
| 90 | + "test-node": "vitest run", |
89 | 91 | "test-browser": "airtap --concurrency 1 --all -- test/*.js test/browser/*.js | tap-spec", |
90 | | - "test-browser-local": "airtap --preset local -- test/*.js | tap-spec", |
91 | | - "test-node": "tape test/*.js", |
92 | | - "test-node-debug": "cross-env DEBUG=* tape test/negotiation.js" |
| 92 | + "test-browser-local": "airtap --preset local -- test/*.js | tap-spec" |
93 | 93 | }, |
94 | 94 | "contributors": [ |
95 | 95 | { |
|
0 commit comments