Skip to content

Commit 0fdbc75

Browse files
committed
chore: test pub debug and options API
1 parent 77d44f4 commit 0fdbc75

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/integration_test.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test public APIs
2+
13
use std::{env, path::PathBuf};
24

35
use oxc_resolver::{Resolution, ResolveOptions, Resolver};
@@ -41,3 +43,16 @@ fn clear_cache() {
4143
let resolver = Resolver::new(ResolveOptions::default());
4244
resolver.clear_cache(); // exists
4345
}
46+
47+
#[test]
48+
fn options() {
49+
let resolver = Resolver::new(ResolveOptions::default());
50+
let options = resolver.options();
51+
assert!(!format!("{options:?}").is_empty());
52+
}
53+
54+
#[test]
55+
fn debug_resolver() {
56+
let resolver = Resolver::new(ResolveOptions::default());
57+
assert!(!format!("{resolver:?}").is_empty());
58+
}

0 commit comments

Comments
 (0)