Skip to content

Commit

Permalink
chore: update rust test error
Browse files Browse the repository at this point in the history
  • Loading branch information
ErKeLost committed Oct 14, 2024
1 parent 5e02941 commit 18cfb5b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions rust-plugins/sass/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use std::{collections::HashMap, fs, io::Write, path::PathBuf, sync::Arc};
use farmfe_compiler::Compiler;
use farmfe_core::{
config::{
bool_or_obj::BoolOrObj, preset_env::PresetEnvConfig, Config, ResolveConfig, RuntimeConfig,
SourcemapConfig,
bool_or_obj::BoolOrObj, preset_env::PresetEnvConfig, AliasItem, Config, ResolveConfig, RuntimeConfig, SourcemapConfig, StringOrRegex
},
context::CompilationContext,
module::ModuleType,
Expand Down Expand Up @@ -87,10 +86,12 @@ fn test_with_compiler() {
tree_shaking: Box::new(BoolOrObj::Bool(false)),
progress: false,
resolve: Box::new(ResolveConfig {
alias: std::collections::HashMap::from([(
"@".to_string(),
cwd.to_string_lossy().to_string(),
)]),
alias: vec![
AliasItem::Complex {
find: StringOrRegex::String("@".to_string()),
replacement: cwd.to_string_lossy().to_string(),
},
],
..Default::default()
}),
..Default::default()
Expand Down

0 comments on commit 18cfb5b

Please sign in to comment.