Skip to content

Commit

Permalink
Normalize path for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Mar 31, 2024
1 parent cf80261 commit 3398e98
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 167 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18", "20"]
node: ["18", "20", "22"]
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-beta.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
uses: actions/setup-node@v1
with:
node-version: "16"
node-version: "20"
- name: Upgrade npm
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: npm i -g npm@latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-lts.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "20"
- name: Upgrade npm
if: steps.check.outputs.changed == 'true'
run: npm i -g npm@latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "20"
- name: Install
if: steps.check.outputs.changed == 'true'
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/visual-regression.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Upgrade npm
run: npm i -g npm@latest
- name: Get baseline screenshots
Expand Down
312 changes: 156 additions & 156 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -37,17 +37,17 @@
"@types/marked": "^4.0.8",
"@types/mocha": "^10.0.6",
"@types/node": "16",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@typestrong/fs-fixture-builder": "github:TypeStrong/fs-fixture-builder#8abd1494280116ff5318dde2c50ad01e1663790c",
"c8": "^9.1.0",
"esbuild": "^0.20.1",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
"mocha": "^10.3.0",
"mocha": "^10.4.0",
"prettier": "3.0.3",
"puppeteer": "^13.5.2",
"ts-node": "^10.9.2",
"typescript": "5.4.2"
"typescript": "5.4.3"
},
"files": [
"/bin",
Expand Down
3 changes: 2 additions & 1 deletion src/test/Repository.test.ts
Expand Up @@ -7,6 +7,7 @@ import { tempdirProject } from "@typestrong/fs-fixture-builder";
import { spawnSync } from "child_process";
import { TestLogger } from "./TestLogger";
import { join } from "path";
import { normalizePath } from "../lib/utils/paths";

describe("Repository", function () {
describe("guessSourceUrlTemplate helper", () => {
Expand Down Expand Up @@ -153,7 +154,7 @@ describe("Repository", function () {

ok(repo);
equal(
repo.getURL(join(project.cwd, "test.js"), 1),
repo.getURL(normalizePath(join(project.cwd, "test.js")), 1),
"b53cc55bcdd9bc5920787a1d4a4a15fa24123b04/b53cc55b/test.js/1",
);
});
Expand Down

0 comments on commit 3398e98

Please sign in to comment.