aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_utils
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/test_utils/hast.rs1
-rw-r--r--tests/test_utils/hast_util_to_swc.rs2
-rw-r--r--tests/test_utils/mdx_plugin_recma_document.rs1
-rw-r--r--tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs2
-rw-r--r--tests/test_utils/swc.rs5
5 files changed, 1 insertions, 10 deletions
diff --git a/tests/test_utils/hast.rs b/tests/test_utils/hast.rs
index 2861898..857df4d 100644
--- a/tests/test_utils/hast.rs
+++ b/tests/test_utils/hast.rs
@@ -6,7 +6,6 @@
// ^-- To do: externalize.
extern crate alloc;
-extern crate markdown;
use alloc::{
fmt,
string::{String, ToString},
diff --git a/tests/test_utils/hast_util_to_swc.rs b/tests/test_utils/hast_util_to_swc.rs
index bd9b865..ea7ffd1 100644
--- a/tests/test_utils/hast_util_to_swc.rs
+++ b/tests/test_utils/hast_util_to_swc.rs
@@ -26,8 +26,6 @@
//! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
//! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-extern crate swc_common;
-extern crate swc_ecma_ast;
use crate::test_utils::{
hast,
swc::{parse_esm_to_tree, parse_expression_to_tree},
diff --git a/tests/test_utils/mdx_plugin_recma_document.rs b/tests/test_utils/mdx_plugin_recma_document.rs
index 34fd5bb..48648b9 100644
--- a/tests/test_utils/mdx_plugin_recma_document.rs
+++ b/tests/test_utils/mdx_plugin_recma_document.rs
@@ -3,7 +3,6 @@
//! Port of <https://github.com/mdx-js/mdx/blob/main/packages/mdx/lib/plugin/recma-document.js>,
//! by the same author.
-extern crate swc_ecma_ast;
use crate::test_utils::{
hast_util_to_swc::Program,
swc_utils::{bytepos_to_point, prefix_error_with_point, span_to_position},
diff --git a/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs b/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs
index 2223d8e..6b058fd 100644
--- a/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs
+++ b/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs
@@ -3,8 +3,6 @@
//! Port of <https://github.com/mdx-js/mdx/blob/main/packages/mdx/lib/plugin/recma-jsx-rewrite.js>,
//! by the same author.
-extern crate swc_common;
-extern crate swc_ecma_ast;
use crate::test_utils::{
hast_util_to_swc::Program,
swc_utils::{
diff --git a/tests/test_utils/swc.rs b/tests/test_utils/swc.rs
index c958f6f..f30561d 100644
--- a/tests/test_utils/swc.rs
+++ b/tests/test_utils/swc.rs
@@ -1,8 +1,5 @@
//! Bridge between `markdown-rs` and SWC.
-extern crate markdown;
-extern crate swc_common;
-extern crate swc_ecma_ast;
-extern crate swc_ecma_parser;
+
use crate::test_utils::swc_utils::{bytepos_to_point, prefix_error_with_point, RewriteContext};
use markdown::{mdast::Stop, unist::Point, Location, MdxExpressionKind, MdxSignal};
use swc_common::{