Skip to content

Commit 4ff5618

Browse files
committed
chore: Add comment detailing adding test fixture for chrome crawler
1 parent 2c53851 commit 4ff5618

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/crawlers/__tests__/chrome-crawler.test.ts

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
// To add a extension to this test:
2+
//
3+
// 1. Uncomment this code inside `src/crawlers/chrome-crawler.ts`:
4+
// https://github.com/wxt-dev/queue/blob/2c538514080e2c787d47cae9f70e9e948fdcbd8b/src/crawlers/chrome-crawler.ts#L25-L30
5+
// 2. Run server in dev mode and use the `chromeExtension` query to get the
6+
// extension's details
7+
// 3. After that query, regardless of if it succeeded or not, a new HTML file
8+
// will be added to `src/crawlers/__tests__/fixtures/chrome-web-store/.new`
9+
// 4. Move the HTML file up one folder so it's next to the other test fixtures
10+
// 5. You're done! The test is added, run `bun test`.
11+
//
12+
113
import { beforeEach, describe, expect, it, mock } from "bun:test";
214
import { crawlExtension } from "../chrome-crawler";
315
import { readdir } from "node:fs/promises";

0 commit comments

Comments
 (0)