diff options
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index a6dc47872..7c754e02d 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -354,6 +354,17 @@ pub async fn run_all_servers() { HeaderValue::from_static("application/javascript"), ); res + })) + .or(warp::path!("cli"/"tests"/"subdir"/"file_with_:_in_name.ts").map(|| { + let mut res = Response::new(Body::from( + "console.log('Hello from file_with_:_in_name.ts');", + )); + let h = res.headers_mut(); + h.insert( + "Content-type", + HeaderValue::from_static("application/typescript"), + ); + res })); let content_type_handler = warp::any() |