Skip to content

Commit

Permalink
test(cli): Testcase for swc-project#9559
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Sep 17, 2024
1 parent d658056 commit e535417
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/swc_cli_impl/tests/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,20 @@ fn issue_8667_1() -> Result<()> {
Ok(())
}

#[test]
fn issue_9559() -> Result<()> {
let sandbox = TempDir::new()?;
fs::write(sandbox.path().join("index.ts"), r"console.log('Hello')")?;
fs::create_dir(sandbox.path().join("chart.js"))?;

let mut cmd = cli()?;
cmd.current_dir(&sandbox).arg("compile").arg(sandbox.path());

cmd.assert().success();

Ok(())
}

/// ln -s $a $b
fn symlink(a: &Path, b: &Path) {
#[cfg(unix)]
Expand Down

0 comments on commit e535417

Please sign in to comment.