Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn2223 committed Oct 18, 2024
1 parent 3065f30 commit fde6427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
21 changes: 1 addition & 20 deletions src/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,36 +61,17 @@ suite("Extension Tests", function () {
)[0]
);

console.log(
"First SCSS:",
(await vscode.workspace.findFiles("css/**"))[0]
);
console.log("Doc:", doc);

vscode.commands.executeCommand("liveSass.command.debugFileList");

// Ensure extension has enough time to start
await new Promise((resolve) => setTimeout(resolve, 1200));

console.log("EDITING FILE");

doc.edit((edit) => {
edit.insert(new vscode.Position(2, 1), " ");
});

console.log("isDirty:", doc.document.isDirty);

console.log("SAVING FILE");

// Save the file
if (!(await doc.document.save())) {
assert.ok(false, "Save failed");
}

console.log("FILE SAVED");

// Wait for 1 second to allow the file system to update
await new Promise((resolve) => setTimeout(resolve, 100));
await new Promise((resolve) => setTimeout(resolve, 200));

// Get the folders files
const actualFiles = (await vscode.workspace.findFiles("css/**")).map(
Expand Down
3 changes: 1 addition & 2 deletions src/test/sample/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Place your settings in this file to overwrite default and user settings.
{
"liveSassCompile.settings.watchOnLaunch": true,
"liveSassCompile.settings.compileOnWatch": false,
"liveSassCompile.settings.showOutputWindowOn": "Trace"
"liveSassCompile.settings.compileOnWatch": false
}

0 comments on commit fde6427

Please sign in to comment.