这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: make removeNodeProtocol work with shims #1285

fix: make removeNodeProtocol work with shims

fix: make removeNodeProtocol work with shims #1285

Triggered via pull request February 27, 2025 04:21
Status Failure
Total duration 1m 49s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

17 errors
test/shims.test.ts > removeNodeProtocol works on shims: test/shims.test.ts#L66
AssertionError: expected '// ../../../assets/esm_shims.js\nimpo…' to strictly equal '// ../../../assets/esm_shims.js\nimpo…' - Expected + Received // ../../../assets/esm_shims.js - import * as path from "path"; + import path from "path"; import { fileURLToPath } from "url"; var getFilename = () => fileURLToPath(import.meta.url); var getDirname = () => path.dirname(getFilename()); var __dirname = /* @__PURE__ */ getDirname(); // src/index.ts var foo = __dirname; export { foo }; ❯ test/shims.test.ts:66:50
test/shims.test.ts > disabling removeNodeProtocol retains node protocol in shims: test/shims.test.ts#L133
AssertionError: expected '// ../../../assets/esm_shims.js\nimpo…' to strictly equal '// ../../../assets/esm_shims.js\nimpo…' - Expected + Received // ../../../assets/esm_shims.js - import * as path from "node:path"; + import path from "node:path"; import { fileURLToPath } from "node:url"; var getFilename = () => fileURLToPath(import.meta.url); var getDirname = () => path.dirname(getFilename()); var __dirname = /* @__PURE__ */ getDirname(); // src/index.ts var foo = __dirname; export { foo }; ❯ test/shims.test.ts:133:50
test (ubuntu-latest, 22)
Process completed with exit code 1.
test (windows-latest, 22)
The job was canceled because "ubuntu-latest_22" failed.
test (windows-latest, 22)
The operation was canceled.
test (windows-latest, 20)
The job was canceled because "ubuntu-latest_22" failed.
test (windows-latest, 20)
The operation was canceled.
test (ubuntu-latest, 20)
The job was canceled because "ubuntu-latest_22" failed.
test/shims.test.ts > removeNodeProtocol works on shims: test/shims.test.ts#L66
AssertionError: expected '// ../../../assets/esm_shims.js\nimpo…' to strictly equal '// ../../../assets/esm_shims.js\nimpo…' - Expected + Received // ../../../assets/esm_shims.js - import * as path from "path"; + import path from "path"; import { fileURLToPath } from "url"; var getFilename = () => fileURLToPath(import.meta.url); var getDirname = () => path.dirname(getFilename()); var __dirname = /* @__PURE__ */ getDirname(); // src/index.ts var foo = __dirname; export { foo }; ❯ test/shims.test.ts:66:50
test/shims.test.ts > disabling removeNodeProtocol retains node protocol in shims: test/shims.test.ts#L133
AssertionError: expected '// ../../../assets/esm_shims.js\nimpo…' to strictly equal '// ../../../assets/esm_shims.js\nimpo…' - Expected + Received // ../../../assets/esm_shims.js - import * as path from "node:path"; + import path from "node:path"; import { fileURLToPath } from "node:url"; var getFilename = () => fileURLToPath(import.meta.url); var getDirname = () => path.dirname(getFilename()); var __dirname = /* @__PURE__ */ getDirname(); // src/index.ts var foo = __dirname; export { foo }; ❯ test/shims.test.ts:133:50
test (ubuntu-latest, 20)
The operation was canceled.
test (windows-latest, 18)
The job was canceled because "ubuntu-latest_22" failed.
test (windows-latest, 18)
The operation was canceled.
test (ubuntu-latest, 18)
The job was canceled because "ubuntu-latest_22" failed.
test/shims.test.ts > removeNodeProtocol works on shims: test/shims.test.ts#L66
AssertionError: expected '// ../../../assets/esm_shims.js\nimpo…' to strictly equal '// ../../../assets/esm_shims.js\nimpo…' - Expected + Received // ../../../assets/esm_shims.js - import * as path from "path"; + import path from "path"; import { fileURLToPath } from "url"; var getFilename = () => fileURLToPath(import.meta.url); var getDirname = () => path.dirname(getFilename()); var __dirname = /* @__PURE__ */ getDirname(); // src/index.ts var foo = __dirname; export { foo }; ❯ test/shims.test.ts:66:50
test/shims.test.ts > disabling removeNodeProtocol retains node protocol in shims: test/shims.test.ts#L133
AssertionError: expected '// ../../../assets/esm_shims.js\nimpo…' to strictly equal '// ../../../assets/esm_shims.js\nimpo…' - Expected + Received // ../../../assets/esm_shims.js - import * as path from "node:path"; + import path from "node:path"; import { fileURLToPath } from "node:url"; var getFilename = () => fileURLToPath(import.meta.url); var getDirname = () => path.dirname(getFilename()); var __dirname = /* @__PURE__ */ getDirname(); // src/index.ts var foo = __dirname; export { foo }; ❯ test/shims.test.ts:133:50
test (ubuntu-latest, 18)
The operation was canceled.