Skip to content

Commit

Permalink
Update to pathe
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Jul 11, 2024
1 parent 850c1f9 commit a34bcc6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/cursorless-vscode-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"chai": "^5.1.0",
"js-yaml": "^4.1.0",
"mocha": "^10.3.0",
"pathe": "^1.1.2",
"sinon": "^17.0.1"
},
"types": "./out/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { assert } from "chai";
import * as vscode from "vscode";
import { endToEndTestSetup, sleepWithBackoff } from "../../endToEndTestSetup";
import sinon from "sinon";
import * as path from "path";
import * as path from "pathe";
import { getCursorlessRepoRoot } from "@cursorless/common";
import { readFile } from "node:fs/promises";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import { assert } from "chai";
import * as crypto from "crypto";
import { mkdir, readdir, readFile, rm } from "fs/promises";
import * as os from "os";
import * as path from "path";
import { basename } from "path";
import * as path from "pathe";
import * as vscode from "vscode";
import { endToEndTestSetup } from "../endToEndTestSetup";

Expand Down Expand Up @@ -158,7 +157,7 @@ async function checkRecordedTest(tmpdir: string) {
assert.lengthOf(paths, 1);

const actualRecordedTestPath = paths[0];
assert.equal(basename(actualRecordedTestPath), "takeHarp.yml");
assert.equal(path.basename(actualRecordedTestPath), "takeHarp.yml");

const expected = (
await readFile(
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a34bcc6

Please sign in to comment.