Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libs/css/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,7 @@ mod tests {
}

#[test]
#[serial]
fn test_disassemble_property_size_hint() {
// Mapped arm: the hint comes straight from the borrowed slice iterator.
let mapped = disassemble_property("bg");
Expand Down
4 changes: 4 additions & 0 deletions libs/css/src/theme_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ pub fn is_responsive_theme_token(value: &str) -> bool {
#[cfg(test)]
mod tests {
use super::*;
use serial_test::serial;

#[test]
#[serial]
fn test_get_responsive_theme_token() {
let mut length = BTreeMap::new();
length.insert("containerX".to_string(), vec![0, 2]);
Expand All @@ -94,6 +96,7 @@ mod tests {
}

#[test]
#[serial]
fn test_is_responsive_theme_token() {
let mut length = BTreeMap::new();
length.insert("containerX".to_string(), vec![0, 2]);
Expand All @@ -111,6 +114,7 @@ mod tests {
}

#[test]
#[serial]
fn test_typography_keys() {
set_typography_keys(vec!["body".to_string(), "title".to_string()]);
assert_eq!(get_typography_keys(), vec!["body", "title"]);
Expand Down
2 changes: 2 additions & 0 deletions libs/extractor/src/extract_style/extract_style_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl ExtractStyleValue {
#[cfg(test)]
mod tests {
use super::*;
use serial_test::serial;

#[test]
fn test_style_order() {
Expand All @@ -67,6 +68,7 @@ mod tests {
}
}
#[test]
#[serial]
fn test_extract() {
let style = ExtractStaticStyle::new("margin", "10px", 0, None);
let value = ExtractStyleValue::Static(style);
Expand Down
4 changes: 4 additions & 0 deletions libs/extractor/src/gen_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ mod tests {
};
use crate::utils::expression_to_code;
use oxc_allocator::Allocator;
use serial_test::serial;

fn dynamic_style<'a>(property: &str, identifier: &str) -> ExtractStyleProp<'a> {
ExtractStyleProp::Static(ExtractStyleValue::Dynamic(ExtractDynamicStyle::new(
Expand All @@ -341,6 +342,7 @@ mod tests {
}

#[test]
#[serial]
fn test_gen_styles_for_alternate_only_conditional() {
let allocator = Allocator::default();
let builder = AstBuilder::new(&allocator);
Expand All @@ -357,6 +359,7 @@ mod tests {
}

#[test]
#[serial]
fn test_gen_styles_for_dynamic_member_expression() {
let allocator = Allocator::default();
let builder = AstBuilder::new(&allocator);
Expand All @@ -383,6 +386,7 @@ mod tests {
}

#[test]
#[serial]
fn test_gen_styles_for_conditional_with_distinct_properties() {
let allocator = Allocator::default();
let builder = AstBuilder::new(&allocator);
Expand Down
4 changes: 4 additions & 0 deletions libs/extractor/tests/vanilla_extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use std::collections::HashMap;

use extractor::{ExtractOption, extract};
use serial_test::serial;

fn extract_stylesheet(code: &str) -> String {
let output = extract(
Expand All @@ -23,6 +24,7 @@ fn extract_stylesheet(code: &str) -> String {
// The library build other targets link is a separate copy from the unit-test
// build; these run every vanilla-extract API through it.
#[test]
#[serial]
fn font_faces_extract_through_the_library() {
let output = extract_stylesheet(
r"const body = fontFace({ src: 'local(a)' }, 'Body')
Expand All @@ -38,6 +40,7 @@ export const text = style({ fontFamily: body, content: icons })",
}

#[test]
#[serial]
fn an_unreadable_var_declaration_is_reported() {
let code = "import { createVar } from '@devup-ui/react'\nexport const v = createVar({ syntax: Symbol() })";
let error = extract(
Expand All @@ -58,6 +61,7 @@ fn an_unreadable_var_declaration_is_reported() {
}

#[test]
#[serial]
fn vars_themes_and_layers_extract_through_the_library() {
let output = extract_stylesheet(
r"const plain = createVar()
Expand Down
Loading
Loading