fix: treat default
condition as esm or cjs
#1697
ci.yml
on: pull_request
Matrix: install_and_test
Matrix: install_and_test_win
release
0s
Annotations
14 errors
test/integration/dev-prod-convention-reexport/index.test.ts > integration dev-prod-convention-reexport > should work with dev and prod optimize conditions:
test/testing-utils/helpers.ts#L73
AssertionError: expected 'var core_js = require(\'./core.js\');…' to match /core.dev.js/
- Expected:
/core.dev.js/
+ Received:
"var core_js = require('./core.js');
const value = 'index';
exports.value = value;
Object.keys(core_js).forEach(function (k) {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
enumerable: true,
get: function () { return core_js[k]; }
});
});
"
❯ test/testing-utils/helpers.ts:73:25
❯ assertFilesContent test/testing-utils/helpers.ts:81:3
❯ test/integration/dev-prod-convention-reexport/index.test.ts:8:5
|
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 18
The job was canceled because "_22" failed.
|
test/integration/dev-prod-convention-reexport/index.test.ts > integration dev-prod-convention-reexport > should work with dev and prod optimize conditions:
test/testing-utils/helpers.ts#L73
AssertionError: expected 'var core_js = require(\'./core.js\');…' to match /core.dev.js/
- Expected:
/core.dev.js/
+ Received:
"var core_js = require('./core.js');
const value = 'index';
exports.value = value;
Object.keys(core_js).forEach(function (k) {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
enumerable: true,
get: function () { return core_js[k]; }
});
});
"
❯ test/testing-utils/helpers.ts:73:25
❯ assertFilesContent test/testing-utils/helpers.ts:81:3
❯ test/integration/dev-prod-convention-reexport/index.test.ts:8:5
|
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.
|
Linux - Node 20
The job was canceled because "_22" failed.
|
test/integration/dev-prod-convention-reexport/index.test.ts > integration dev-prod-convention-reexport > should work with dev and prod optimize conditions:
test/testing-utils/helpers.ts#L73
AssertionError: expected 'var core_js = require(\'./core.js\');…' to match /core.dev.js/
- Expected:
/core.dev.js/
+ Received:
"var core_js = require('./core.js');
const value = 'index';
exports.value = value;
Object.keys(core_js).forEach(function (k) {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
enumerable: true,
get: function () { return core_js[k]; }
});
});
"
❯ test/testing-utils/helpers.ts:73:25
❯ assertFilesContent test/testing-utils/helpers.ts:81:3
❯ test/integration/dev-prod-convention-reexport/index.test.ts:8:5
|
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
The operation was canceled.
|
test/integration/dev-prod-convention-reexport/index.test.ts > integration dev-prod-convention-reexport > should work with dev and prod optimize conditions:
test/testing-utils/helpers.ts#L73
AssertionError: expected 'var core_js = require(\'./core.js\');…' to match /core.dev.js/
- Expected:
/core.dev.js/
+ Received:
"var core_js = require('./core.js');
const value = 'index';
exports.value = value;
Object.keys(core_js).forEach(function (k) {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
enumerable: true,
get: function () { return core_js[k]; }
});
});
"
❯ test/testing-utils/helpers.ts:73:25
❯ assertFilesContent test/testing-utils/helpers.ts:81:3
❯ test/integration/dev-prod-convention-reexport/index.test.ts:8:5
|
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.
|