swc/testing/macros/tests/test.rs
강동윤 4011703af5
fix(testing): Allow using it with stable rustc (#1974)
testing_macros:
 - Make `#[fixture]` relative to cargo manifest dir.
2021-07-29 14:18:21 +09:00

18 lines
399 B
Rust

#![deny(unused)]
use std::path::PathBuf;
use testing_macros::fixture;
#[fixture("tests/simple/*.ts")]
fn simple(_path: PathBuf) {}
#[fixture("tests/ignore/**/*.ts")]
fn ignored(_path: PathBuf) {}
#[fixture("tests/simple/**/*.ts")]
#[fixture("tests/simple/**/*.tsx")]
fn multiple(_path: PathBuf) {}
#[fixture("tests/simple/**/*", exclude(".*\\.tsx", ".*.d\\.ts"))]
fn exlucde(_path: PathBuf) {}