Skip to content

Commit 5a0d233

Browse files
WIP: Add failing test back
1 parent ae6885f commit 5a0d233

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

crates/oxide/src/scanner/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ fn create_walker(sources: Sources) -> Option<WalkBuilder> {
441441
Some(pattern) => format!("!{}", pattern),
442442
None => pattern,
443443
};
444+
dbg!(&base, &absolute_pattern);
444445
ignore_builder.add_line(None, &absolute_pattern).unwrap();
445446
}
446447
let ignore = ignore_builder.build().unwrap();

crates/oxide/tests/scanner.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -635,14 +635,13 @@ mod scanner {
635635
}
636636

637637
#[test]
638-
#[ignore]
639638
fn it_should_ignore_negated_custom_sources() {
640639
let (paths, candidates) = scan_with_globs(
641640
&[
642-
("src/index.ts", "content-['src/index.ts']"),
643-
("src/colors/red.jsx", "content-['src/colors/red.jsx']"),
644-
("src/colors/blue.tsx", "content-['src/colors/blue.tsx']"),
645-
("src/colors/green.tsx", "content-['src/colors/green.tsx']"),
641+
// ("src/index.ts", "content-['src/index.ts']"),
642+
// ("src/colors/red.jsx", "content-['src/colors/red.jsx']"),
643+
// ("src/colors/blue.tsx", "content-['src/colors/blue.tsx']"),
644+
// ("src/colors/green.tsx", "content-['src/colors/green.tsx']"),
646645
("src/utils/string.ts", "content-['src/utils/string.ts']"),
647646
("src/utils/date.ts", "content-['src/utils/date.ts']"),
648647
("src/utils/file.ts", "content-['src/utils/file.ts']"),
@@ -654,13 +653,13 @@ mod scanner {
654653
"src/templates/index.html",
655654
"content-['src/templates/index.html']",
656655
),
657-
("dist/out.html", "content-['dist/out.html']"),
656+
// ("dist/out.html", "content-['dist/out.html']"),
658657
],
659658
vec![
660-
"@source not 'src/index.ts'",
661-
"@source not '**/*.{jsx,tsx}'",
659+
// "@source not 'src/index.ts'",
660+
// "@source not '**/*.{jsx,tsx}'",
662661
"@source not 'src/utils'",
663-
"@source not 'dist'",
662+
// "@source not 'dist'",
664663
],
665664
);
666665

0 commit comments

Comments
 (0)