From 7628f7dd273f9d3636b66879d9ba1d336d944f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Thu, 23 Feb 2023 13:33:02 +0900 Subject: [PATCH] More json work --- crates/swc_ecma_transforms_proposal/tests/decorators.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators.rs b/crates/swc_ecma_transforms_proposal/tests/decorators.rs index decfc5959dde4..d8f39103b994f 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators.rs +++ b/crates/swc_ecma_transforms_proposal/tests/decorators.rs @@ -3,7 +3,7 @@ use std::path::{Path, PathBuf}; use serde::Deserialize; use swc_common::{chain, Mark}; use swc_ecma_parser::{EsConfig, Syntax, TsConfig}; -use swc_ecma_transforms_base::resolver; +use swc_ecma_transforms_base::{assumptions::Assumptions, resolver}; use swc_ecma_transforms_proposal::decorator_2022_03::decorator_2022_03; use swc_ecma_transforms_testing::{test_fixture, FixtureTestConfig}; use swc_ecma_visit::Fold; @@ -57,7 +57,14 @@ fn fixture_inner(input: PathBuf) { #[derive(Deserialize)] #[serde(deny_unknown_fields, rename_all = "camelCase")] struct BabelTestOptions { + #[serde(default)] + assumptions: Assumptions, + + #[serde(default)] plugins: Vec, + + #[serde(default)] + min_node_version: String, } #[derive(Deserialize)]