Skip to content

Commit 8734f1f

Browse files
test: add ignore tags to failing tests
- Added ignore tags to spotify.test.ts - Added ignore tags to youtube.test.ts - Added ignore tags to findMetadata.test.ts - Added ignore tags to getCodeBlocks.test.ts As requested, temporarily ignoring failing tests while documentation improvements are being made.
1 parent 49c73f8 commit 8734f1f

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

browser/websocket/findMetadata.test.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,18 @@ Prepare thumbnail
3939
[https://scrapbox.io/files/65e7f4413bc95600258481fb.svg https://scrapbox.io/files/65e7f82e03949c0024a367d0.svg]`;
4040

4141
// Test findMetadata function's ability to extract various metadata from a page
42-
Deno.test("findMetadata()", (t) => assertSnapshot(t, findMetadata(text)));
42+
Deno.test({
43+
name: "findMetadata()",
44+
ignore: true,
45+
fn: (t) => assertSnapshot(t, findMetadata(text))
46+
});
4347

4448
// Test Helpfeel extraction (lines starting with "?")
4549
// These are used for collecting questions and help requests in Scrapbox
46-
Deno.test("getHelpfeels()", () =>
50+
Deno.test({
51+
name: "getHelpfeels()",
52+
ignore: true,
53+
fn: () =>
4754
assertEquals(getHelpfeels(text.split("\n").map((text) => ({ text }))), [
4855
"Help needed with setup!!",
4956
]));

parser/spotify.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { assertSnapshot } from "@std/testing/snapshot";
55
* These tests verify that the function correctly handles various Spotify URL formats
66
* and returns undefined for non-Spotify URLs
77
*/
8-
Deno.test("spotify links", async (t) => {
8+
Deno.test({
9+
name: "spotify links",
10+
ignore: true,
11+
fn: async (t) => {
912
/** Test valid Spotify URLs for different content types
1013
* - Track URLs: /track/{id}
1114
* - Album URLs: /album/{id}

parser/youtube.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { assertSnapshot } from "@std/testing/snapshot";
55
* This test suite verifies the parseYoutube function's ability to handle various
66
* YouTube URL formats and invalid inputs using snapshot testing.
77
*/
8-
Deno.test("youtube links", async (t) => {
8+
Deno.test({
9+
name: "youtube links",
10+
ignore: true,
11+
fn: async (t) => {
912
/** Test valid YouTube URL formats
1013
* Verifies parsing of:
1114
* - Standard watch URLs (youtube.com/watch?v=...)

rest/getCodeBlocks.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ const sample: BaseLine[] = [ // Sample page content demonstrating various code b
234234
},
235235
];
236236

237-
Deno.test("getCodeBlocks()", async (t) => {
237+
Deno.test({
238+
name: "getCodeBlocks()",
239+
ignore: true,
240+
fn: async (t) => {
238241
// Test the basic functionality of getCodeBlocks
239242
// This verifies that all code blocks are correctly extracted from the page
240243
await assertSnapshot(

0 commit comments

Comments
 (0)