Skip to content

Commit fde2a89

Browse files
committed
test: remove the copied node_modules folder in the sidecar fixture
1 parent f99b5e0 commit fde2a89

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cli/tests/entrypoints/web/test_browser_service_code_intelligence.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
them the test is skipped.
1212
"""
1313

14+
import shutil
1415
from dataclasses import dataclass, field
1516
from pathlib import Path
1617
from typing import Any
@@ -119,7 +120,7 @@ def _install_fake_typescript_server(workspace: Path) -> None:
119120
script = workspace / LSP_DIRECTORY / str(TYPESCRIPT_LANGUAGE_SERVER.script)
120121
script.parent.mkdir(parents=True)
121122
script.write_text("")
122-
(workspace / "typescript" / "node_modules").unlink()
123+
shutil.rmtree(workspace / "typescript" / "node_modules")
123124

124125

125126
def _open_the_file(page: Any, server: RunningServer) -> None:

0 commit comments

Comments
 (0)