1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
Description: add feature fences for tests
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2024-11-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/crates/swc_allocator/Cargo.toml
+++ b/crates/swc_allocator/Cargo.toml
@@ -47,3 +47,7 @@
harness = false
name = "bench"
required-features = ["nightly"]
+
+[[test]]
+name = "alloction"
+required-features = ["nightly"]
--- a/crates/swc_html_parser/Cargo.toml
+++ b/crates/swc_html_parser/Cargo.toml
@@ -49,3 +49,7 @@
[[bench]]
harness = false
name = "parser"
+
+[[test]]
+name = "html5lib_tests"
+required-features = ["html5lib"]
--- a/crates/swc_core/tests/integration.rs
+++ b/crates/swc_core/tests/integration.rs
@@ -28,6 +28,7 @@
Ok(())
}
+#[cfg(feature = "base_node")]
#[test]
fn swc_core_napi_integration_build() -> Result<(), Error> {
build_fixture_binary(
@@ -39,6 +40,7 @@
)
}
+#[cfg(feature = "browserslist")]
#[test]
fn swc_core_wasm_integration_build() -> Result<(), Error> {
build_fixture_binary(
|