Skip to content

Patch 2026.04.1#3075

Open
freearhey wants to merge 7 commits intomasterfrom
patch-2026.04.1
Open

Patch 2026.04.1#3075
freearhey wants to merge 7 commits intomasterfrom
patch-2026.04.1

Conversation

@freearhey
Copy link
Copy Markdown
Collaborator

Changes:

Test results:

npm test --- commands

> test
> cross-env TZ=Pacific/Nauru npx jest --runInBand commands

 PASS  tests/commands/epg/grab.test.ts (13.189 s)
 PASS  tests/commands/channels/lint.test.ts (6.375 s)
 PASS  tests/commands/channels/validate.test.ts
 PASS  tests/commands/channels/format.test.ts (5.082 s)
 PASS  tests/commands/channels/edit.test.ts
 PASS  tests/commands/sites/update.test.ts
 PASS  tests/commands/sites/init.test.ts
 PASS  tests/commands/guides/update.test.ts
 PASS  tests/commands/api/generate.test.ts
 PASS  tests/commands/channels/parse.test.ts

Test Suites: 10 passed, 10 total
Tests:       23 passed, 23 total
Snapshots:   0 total
Time:        38.054 s, estimated 45 s
Ran all test suites matching commands.

@PopeyeTheSai10r
Copy link
Copy Markdown
Collaborator

 tests/commands/channels/edit.test.tschannels:edit  shows list of options for a channel

    expect(received).toContain(expected) // indexOf

    Expected substring: "CNNInternational.us (CNN International, CNN, CNN Int)"
    Received string:    "
    > channels:edit
    > tsx scripts/commands/channels/edit.ts tests/__data__/output/channels.xml·
    "

      30 |
      31 | function checkStdout(stdout: string) {
    > 32 |   expect(stdout).toContain('CNNInternational.us (CNN International, CNN, CNN Int)')
         |                  ^
      33 |   expect(stdout).toContain('Type...')
      34 |   expect(stdout).toContain('Skip')
      35 |   expect(stdout).toContain("File 'tests/__data__/output/channels.xml' successfully saved")

      at toContain (tests/commands/channels/edit.test.ts:32:18)
      at Object.checkStdout (tests/commands/channels/edit.test.ts:25:9)

 PASS  tests/commands/epg/grab.test.ts (37.974 s)
 PASS  tests/commands/channels/lint.test.ts (17.504 s)
 PASS  tests/commands/channels/format.test.ts (8.837 s)
 PASS  tests/commands/guides/update.test.ts
 PASS  tests/commands/sites/update.test.ts
 PASS  tests/commands/channels/parse.test.ts
 PASS  tests/commands/api/generate.test.ts
 PASS  tests/commands/sites/init.test.ts

Test Suites: 2 failed, 8 passed, 10 total
Tests:       4 failed, 19 passed, 23 total
Snapshots:   0 total
Time:        109.288 s, estimated 110 s
Ran all test suites matching commands.

@freearhey
Copy link
Copy Markdown
Collaborator Author

Everything should be working properly now.

Test results (Windows 10):

npm test --- commands

> test
> cross-env TZ=Pacific/Nauru npx jest --runInBand commands

 PASS  tests/commands/epg/grab.test.ts (46.617 s)
 PASS  tests/commands/channels/validate.test.ts (9.661 s)
 PASS  tests/commands/channels/lint.test.ts (11.402 s)
 PASS  tests/commands/sites/init.test.ts
 PASS  tests/commands/channels/edit.test.ts
 PASS  tests/commands/channels/parse.test.ts
 PASS  tests/commands/channels/format.test.ts (7.171 s)
 PASS  tests/commands/guides/update.test.ts
 PASS  tests/commands/api/generate.test.ts
 PASS  tests/commands/sites/update.test.ts

Test Suites: 10 passed, 10 total
Tests:       23 passed, 23 total
Snapshots:   0 total
Time:        94.113 s
Ran all test suites matching commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants