Skip to content

Commit c323bbc

Browse files
committed
Parse test options
1 parent 814e1c2 commit c323bbc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ecmascript/transforms/proposal/src/private_in_object.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,16 @@ mod tests {
2929

3030
#[derive(Debug, Clone, Deserialize)]
3131
#[serde(deny_unknown_fields)]
32-
struct TestOptions {}
32+
struct TestOptions {
33+
plugins: Vec<PluginConfig>,
34+
}
35+
36+
#[derive(Debug, Clone, Deserialize)]
37+
#[serde(untagged)]
38+
enum PluginConfig {
39+
WithOption(String, #[serde(default)] serde_json::Value),
40+
Name(String),
41+
}
3342

3443
#[testing::fixture("tests/private-in-object/**/input.js")]
3544
fn fixture(input: PathBuf) {

0 commit comments

Comments
 (0)