Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 19, 2022
1 parent ef9786e commit 7706d80
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/swc_css_modules/tests/with_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ use swc_css_codegen::{
writer::basic::{BasicCssWriter, BasicCssWriterConfig},
CodegenConfig, Emit,
};
use swc_css_compat::nesting::nesting;
use swc_css_compat::{
compiler::{Compiler, Config},
feature::Features,
};
use swc_css_parser::{parse_file, parser::ParserConfig};
use swc_css_visit::VisitMutWith;
use testing::NormalizedOutput;
Expand Down Expand Up @@ -48,8 +51,9 @@ fn test_full(input: PathBuf, suffix: Option<&str>) {
}

swc_css_modules::compile(&mut ss, TestConfig {});

ss.visit_mut_with(&mut nesting());
ss.visit_mut_with(&mut Compiler::new(Config {
process: Features::NESTING,
}));

let mut s = String::new();
{
Expand Down

0 comments on commit 7706d80

Please sign in to comment.