Patch 2025.04.2#21231
Merged
Merged
Conversation
Merged
Contributor
|
Some of the tests are not passing on my windows vm. |
Collaborator
Author
|
@PopeyeTheSai10r Please check again, it should work now. |
Contributor
|
Still running into some issues. The log is really long so I copied some snippets. LogsFAIL tests/commands/playlist/format.test.ts (22.436 s)
● playlist:format › can format playlists
ENOENT: no such file or directory, open 'C:\iptv\tests\__data__\output\streams\tests\__data__\expected\playlist_format\nl.m3u'
33 |
34 | function content(filepath: string) {
> 35 | return fs.readFileSync(`tests/__data__/${filepath}`, {
| ^
36 | encoding: 'utf8'
37 | })
38 | }
at content (tests/commands/playlist/format.test.ts:35:13)
at tests/commands/playlist/format.test.ts:27:14
at Array.forEach (<anonymous>)
at Object.<anonymous> (tests/commands/playlist/format.test.ts:26:11)
FAIL tests/commands/playlist/generate.test.ts (7.607 s)
● playlist:generate › can generate playlists and logs
expect(received).toStrictEqual(expected) // deep equality
- Expected - 76
+ Received + 76
Array [
...
...
FAIL tests/commands/playlist/update.test.ts (7.4 s)
● playlist:update › can update playlists
ENOENT: no such file or directory, open 'C:\iptv\tests\__data__\output\streams\tests\__data__\expected\playlist_update\us.m3u'
38 |
39 | function content(filepath: string) {
> 40 | return fs.readFileSync(`tests/__data__/${filepath}`, {
| ^
41 | encoding: 'utf8'
42 | })
43 | }
at content (tests/commands/playlist/update.test.ts:40:13)
at tests/commands/playlist/update.test.ts:28:14
at Array.forEach (<anonymous>)
at Object.<anonymous> (tests/commands/playlist/update.test.ts:27:11)
FAIL tests/commands/readme/update.test.ts (6.922 s)
● readme:update › can update readme.md
expect(received).toEqual(expected) // deep equality
...
...
...
30 | if (process.env.DEBUG === 'true') console.log(cmd, stdout)
31 |
> 32 | expect(content('tests/__data__/output/readme.md')).toEqual(
| ^
33 | content('tests/__data__/expected/readme_update/_readme.md')
34 | )
35 | })
at Object.<anonymous> (tests/commands/readme/update.test.ts:32:56)
FAIL tests/commands/api/generate.test.ts
● api:generate › can create streams.json
ENOENT: no such file or directory, open 'C:\iptv\tests\__data__\expected\api_generate\.api\streams.json'
28 | function content(filepath: string) {
29 | return JSON.parse(
> 30 | fs.readFileSync(`tests/__data__/${filepath}`, {
| ^
31 | encoding: 'utf8'
32 | })
33 | )
at content (tests/commands/api/generate.test.ts:30:8)
at Object.<anonymous> (tests/commands/api/generate.test.ts:23:7)
PASS tests/commands/playlist/test.test.ts (15.428 s)
PASS tests/commands/playlist/validate.test.ts (12.566 s)
PASS tests/commands/playlist/edit.test.ts (6.796 s)
PASS tests/commands/report/create.test.ts (7.336 s)
Test Suites: 5 failed, 4 passed, 9 total
Tests: 5 failed, 5 passed, 10 total |
Collaborator
Author
|
@PopeyeTheSai10r, thanks to you I've caught a lot of bugs. Hopefully everything will work fine now. |
Contributor
|
All tests passed this time. npm test
> test
> jest --runInBand
PASS tests/commands/playlist/format.test.ts (22.055 s)
PASS tests/commands/playlist/generate.test.ts (7.471 s)
PASS tests/commands/playlist/update.test.ts (6.587 s)
PASS tests/commands/readme/update.test.ts (6.739 s)
PASS tests/commands/api/generate.test.ts (6.734 s)
PASS tests/commands/playlist/test.test.ts (16.79 s)
PASS tests/commands/playlist/validate.test.ts (13.673 s)
PASS tests/commands/report/create.test.ts (6.791 s)
PASS tests/commands/playlist/edit.test.ts (9.873 s)
Test Suites: 9 passed, 9 total
Tests: 10 passed, 10 total
Snapshots: 0 total
Time: 97.546 s
Ran all test suites. |
PopeyeTheSai10r
approved these changes
Apr 23, 2025
Alstruit
approved these changes
Apr 23, 2025
renanbazinin
pushed a commit
to renanbazinin/iptv
that referenced
this pull request
May 1, 2026
Patch 2025.04.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added a new script
playlist:editwhich should speed up the process of marking up links in playlists.Example:
Test results:
Test results (Windows 10 via VM):