Skip to content

Commit

Permalink
fix windows path separators (vercel/turborepo#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra authored Aug 25, 2022
1 parent 5156dcf commit 3148d3b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/next-swc/crates/next-dev/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use test_generator::test_resources;
use tokio::{net::TcpSocket, task::JoinHandle};
use tungstenite::{error::ProtocolError::ResetWithoutClosingHandshake, Error::Protocol};
use turbo_tasks::TurboTasks;
use turbo_tasks_fs::util::sys_to_unix;
use turbo_tasks_memory::MemoryBackend;

#[derive(Debug, Deserialize)]
Expand Down Expand Up @@ -123,12 +124,7 @@ async fn run_test(resource: &str) -> JestRunResult {
.project_dir("tests".into())
.entry_asset("harness.js".into())
.entry_asset(
test_entry
.strip_prefix("tests")
.unwrap()
.to_str()
.unwrap()
.to_string(),
sys_to_unix(test_entry.strip_prefix("tests").unwrap().to_str().unwrap()).to_string(),
)
.eager_compile(false)
.hostname(requested_addr.ip())
Expand Down

0 comments on commit 3148d3b

Please sign in to comment.