Skip to content

TLDR Pages Extension Tests Failing #484

@EmperorArthur

Description

@EmperorArthur

Tests for the "TLDR Pages" extensions are failing. Related to how the data is fetched or the data format.

Relevant Failure Messages:

https://github.com/sedwards2009/extraterm/actions/runs/22021516422/job/63631329265

tldr-pages
 | Downloading TLDR Pages data files...
 | (node:14479) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
 | (Use `node --trace-deprecation ...` to show where the warning was created)
 | rm: no such file or directory: data/pages.*
 | mv: no such file or directory: data/index.json
 | Done downloading TLDR Pages data.
tldr-pages
 | 
 |   dist/main.cjs  6.5kb
 | 
 | ⚡ Done in 5ms
 | (node:14743) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
 | (Use `node --trace-warnings ...` to show where the warning was created)
 | FAIL build/PageDatabase.jest.js
 |   ✕ Scan (9 ms)
 | 
 |   ● Scan
 | 
 |     ENOENT: no such file or directory, open 'data/pages/index.json'
 | 
 |       41 |   async loadIndex(): Promise<void> {
 |       42 |     const pagesIndexPath = path.join(this.#databasePath, "index.json");
 |     > 43 |     const indexJSONString = await fs.promises.readFile(pagesIndexPath, {encoding: "utf8"});
 |          |                             ^
 |       44 |     const pageIndex = JSON.parse(indexJSONString);
 |       45 |
 |       46 |     const commandList: string[] = [];
 | 
 |       at PageDatabase.loadIndex (../src/PageDatabase.ts:43:29)
 |       at Object.<anonymous> (../src/PageDatabase.jest.ts:11:3)
 | 
 | Test Suites: 1 failed, 1 total
 | Tests:       1 failed, 1 total
 | Snapshots:   0 total
 | Time:        0.32 s
 | Ran all test suites.
 | `yarn test` failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions