fix: tests #211
4 changed files with 23 additions and 26 deletions
|
@ -23,4 +23,4 @@ jobs:
|
||||||
run: npm run format-check
|
run: npm run format-check
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test -- --ci
|
run: npm run test
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -15,6 +15,3 @@ dist/
|
||||||
|
|
||||||
# Debug file
|
# Debug file
|
||||||
src/events/player/debug.ts
|
src/events/player/debug.ts
|
||||||
|
|
||||||
# Jest
|
|
||||||
coverage/
|
|
||||||
|
|
42
package-lock.json
generated
42
package-lock.json
generated
|
@ -975,9 +975,9 @@
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.10.1",
|
"version": "22.10.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz",
|
||||||
"integrity": "sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==",
|
"integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~6.20.0"
|
"undici-types": "~6.20.0"
|
||||||
|
@ -1890,14 +1890,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/discord-player-youtubei": {
|
"node_modules/discord-player-youtubei": {
|
||||||
"version": "1.3.6",
|
"version": "1.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/discord-player-youtubei/-/discord-player-youtubei-1.3.6.tgz",
|
"resolved": "https://registry.npmjs.org/discord-player-youtubei/-/discord-player-youtubei-1.3.7.tgz",
|
||||||
"integrity": "sha512-odeMHEY0WA0YN9dNGMj932QiEWf29DnxrW1PgEC1qyLursb9/rKB7dU1P6kCM2KeATONPbiRvp5332h+6Hssdw==",
|
"integrity": "sha512-EZ/ezfUC32VKtKY7CGcEdgeb/V/p9CyQoLwwjuiLxYSaeI4patGVGlCQP0v4cyK2yCJefDmfgjol0lXFwB1KrQ==",
|
||||||
"license": "Creative Commons",
|
"license": "Creative Commons",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tiny-typed-emitter": "^2.1.0",
|
"tiny-typed-emitter": "^2.1.0",
|
||||||
"undici": "^7.1.0",
|
"undici": "^7.1.0",
|
||||||
"youtubei.js": "^12.0.0"
|
"youtubei.js": "^12.2.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"discord-player-youtubei": "bin/index.js"
|
"discord-player-youtubei": "bin/index.js"
|
||||||
|
@ -3017,9 +3017,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/is-core-module": {
|
"node_modules/is-core-module": {
|
||||||
"version": "2.15.1",
|
"version": "2.16.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz",
|
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.0.tgz",
|
||||||
"integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==",
|
"integrity": "sha512-urTSINYfAYgcbLb0yDQ6egFm6h3Mo1DcF9EkyXSRjjzdHbsulg01qhwWuXdOoUBuTkbQ80KDboXa0vFJ+BDH+g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -3110,9 +3110,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/jintr": {
|
"node_modules/jintr": {
|
||||||
"version": "3.1.0",
|
"version": "3.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/jintr/-/jintr-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/jintr/-/jintr-3.2.0.tgz",
|
||||||
"integrity": "sha512-azhCHApkRfBH8INpiUCwKBYaNCdB5G+x3NApsI2MxQXSlgFAx7rap3YwE3JAkN08GO8f3ilZsGB0Yvc+412ntQ==",
|
"integrity": "sha512-psD1yf05kMKDNsUdW1l5YhO59pHScQ6OIHHb8W5SKSM2dCOFPsqolmIuSHgVA8+3Dc47NJR181CXZ4alCAPTkA==",
|
||||||
"funding": [
|
"funding": [
|
||||||
"https://github.com/sponsors/LuanRT"
|
"https://github.com/sponsors/LuanRT"
|
||||||
],
|
],
|
||||||
|
@ -4606,13 +4606,13 @@
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/resolve": {
|
"node_modules/resolve": {
|
||||||
"version": "1.22.8",
|
"version": "1.22.9",
|
||||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz",
|
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.9.tgz",
|
||||||
"integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
|
"integrity": "sha512-QxrmX1DzraFIi9PxdG5VkRfRwIgjwyud+z/iBwfRRrVmHc+P9Q7u2lSSpQ6bjr2gy5lrqIiU9vb6iAeGf2400A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"is-core-module": "^2.13.0",
|
"is-core-module": "^2.16.0",
|
||||||
"path-parse": "^1.0.7",
|
"path-parse": "^1.0.7",
|
||||||
"supports-preserve-symlinks-flag": "^1.0.0"
|
"supports-preserve-symlinks-flag": "^1.0.0"
|
||||||
},
|
},
|
||||||
|
@ -5675,16 +5675,16 @@
|
||||||
"license": "Apache-2.0"
|
"license": "Apache-2.0"
|
||||||
},
|
},
|
||||||
"node_modules/youtubei.js": {
|
"node_modules/youtubei.js": {
|
||||||
"version": "12.0.0",
|
"version": "12.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/youtubei.js/-/youtubei.js-12.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/youtubei.js/-/youtubei.js-12.2.0.tgz",
|
||||||
"integrity": "sha512-pGmVb1I9b2gseqmuMx+BCajzVUi04+r+8zxj4Fk/iQaGQGvBCbY87Tu9mdvEgIQYTkkb4Fza7GZGrH9AjYNbrw==",
|
"integrity": "sha512-G+50qrbJCToMYhu8jbaHiS3Vf+RRul+CcDbz3hEGwHkGPh+zLiWwD6SS+YhYF+2/op4ZU5zDYQJrGqJ+wKh7Gw==",
|
||||||
"funding": [
|
"funding": [
|
||||||
"https://github.com/sponsors/LuanRT"
|
"https://github.com/sponsors/LuanRT"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bufbuild/protobuf": "^2.0.0",
|
"@bufbuild/protobuf": "^2.0.0",
|
||||||
"jintr": "^3.1.0",
|
"jintr": "^3.2.0",
|
||||||
"tslib": "^2.5.0",
|
"tslib": "^2.5.0",
|
||||||
"undici": "^5.19.1"
|
"undici": "^5.19.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"lint": "npx eslint src",
|
"lint": "npx eslint src",
|
||||||
"format-check": "npx prettier --check src",
|
"format-check": "npx prettier --check src",
|
||||||
"format-write": "npx prettier --write src",
|
"format-write": "npx prettier --write src",
|
||||||
"test": "node --import tsx --test **/*.test.ts"
|
"test": "find . -type f -name '*.test.ts' | xargs node --import tsx --test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in a new issue