Skip to content

Commit c828837

Browse files
committed
Wrap path in quotes
1 parent c23b10f commit c828837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/exercise.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ chokidar.watch(exerciseFile).on("all", (event, path) => {
4242
console.clear();
4343
if (containsVitest) {
4444
console.log("Running tests...");
45-
execSync(`vitest run ${exerciseFile} --passWithNoTests`, {
45+
execSync(`vitest run "${exerciseFile}" --passWithNoTests`, {
4646
stdio: "inherit",
4747
});
4848
}
4949
console.log("Checking types...");
50-
execSync(`tsc ${exerciseFile} --noEmit --strict`, {
50+
execSync(`tsc "${exerciseFile}" --noEmit --strict`, {
5151
stdio: "inherit",
5252
});
5353
console.log("Typecheck complete. You finished the exercise!");

0 commit comments

Comments
 (0)