Skip to content

fix: treat default condition as esm or cjs #1695

fix: treat default condition as esm or cjs

fix: treat default condition as esm or cjs #1695

Triggered via pull request February 12, 2025 16:38
Status Failure
Total duration 3m 17s
Artifacts

ci.yml

on: pull_request
Matrix: install_and_test
Matrix: install_and_test_win
release
0s
release
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test/integration/exports-order/index.test.ts > integration exports-order > should work with exports order: test/testing-utils/helpers.ts#L75
AssertionError: expected 'var a_edgeLight_js = require(\'./a.ed…' to contain 'var a_cjs = require(\'./a.cjs\');' - Expected + Received - var a_cjs = require('./a.cjs'); + var a_edgeLight_js = require('./a.edge-light.js'); + + + + Object.keys(a_edgeLight_js).forEach(function (k) { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + enumerable: true, + get: function () { return a_edgeLight_js[k]; } + }); + }); + ❯ test/testing-utils/helpers.ts:75:25 ❯ assertFilesContent test/testing-utils/helpers.ts:81:3 ❯ test/integration/exports-order/index.test.ts:27:5
Linux - Node 22
Process completed with exit code 1.
Linux - Node 20
The job was canceled because "_22" failed.
test/integration/exports-order/index.test.ts > integration exports-order > should work with exports order: test/testing-utils/helpers.ts#L75
AssertionError: expected 'var a_edgeLight_js = require(\'./a.ed…' to contain 'var a_cjs = require(\'./a.cjs\');' - Expected + Received - var a_cjs = require('./a.cjs'); + var a_edgeLight_js = require('./a.edge-light.js'); + + + + Object.keys(a_edgeLight_js).forEach(function (k) { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + enumerable: true, + get: function () { return a_edgeLight_js[k]; } + }); + }); + ❯ test/testing-utils/helpers.ts:75:25 ❯ assertFilesContent test/testing-utils/helpers.ts:81:3 ❯ test/integration/exports-order/index.test.ts:27:5
Linux - Node 20
Process completed with exit code 1.
Linux - Node 18
The job was canceled because "_22" failed.
test/integration/exports-order/index.test.ts > integration exports-order > should work with exports order: test/testing-utils/helpers.ts#L75
AssertionError: expected 'var a_edgeLight_js = require(\'./a.ed…' to contain 'var a_cjs = require(\'./a.cjs\');' - Expected + Received - var a_cjs = require('./a.cjs'); + var a_edgeLight_js = require('./a.edge-light.js'); + + + + Object.keys(a_edgeLight_js).forEach(function (k) { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + enumerable: true, + get: function () { return a_edgeLight_js[k]; } + }); + }); + ❯ test/testing-utils/helpers.ts:75:25 ❯ assertFilesContent test/testing-utils/helpers.ts:81:3 ❯ test/integration/exports-order/index.test.ts:27:5
Linux - Node 18
The operation was canceled.
test/integration/exports-order/index.test.ts > integration exports-order > should work with exports order: test/testing-utils/helpers.ts#L75
AssertionError: expected 'var a_edgeLight_js = require(\'./a.ed…' to contain 'var a_cjs = require(\'./a.cjs\');' - Expected + Received - var a_cjs = require('./a.cjs'); + var a_edgeLight_js = require('./a.edge-light.js'); + + + + Object.keys(a_edgeLight_js).forEach(function (k) { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + enumerable: true, + get: function () { return a_edgeLight_js[k]; } + }); + }); + ❯ test/testing-utils/helpers.ts:75:25 ❯ assertFilesContent test/testing-utils/helpers.ts:81:3 ❯ test/integration/exports-order/index.test.ts:27:5
Windows - Node 20
Process completed with exit code 1.