test: resolve optional chaining test todo (#19651)

This commit is contained in:
Alexander Akait 2025-07-03 14:26:23 +03:00 committed by GitHub
parent 3b3d4c5528
commit 58aded3461
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 11 additions and 70 deletions

View File

@ -1,11 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
mode: "none",
experiments: {
topLevelAwait: true,

View File

@ -1,11 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
experiments: {
topLevelAwait: true,
deferImport: true

View File

@ -1,12 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
optimization: {},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
experiments: {
deferImport: true
}

View File

@ -1,13 +1,7 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
entry: ["../defer-runtime/all.js"],
optimization: {},
module: {
rules: [
{

View File

@ -1,13 +1,7 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
entry: ["../defer-runtime/all.js"],
optimization: {},
experiments: {
deferImport: true
}

View File

@ -1,11 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
entry: ["../defer-runtime/all-native-syntax.js"],
optimization: {
concatenateModules: false

View File

@ -1,11 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
entry: ["../defer-runtime/all.js"],
optimization: {
concatenateModules: false

View File

@ -1,11 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
entry: ["./all.js"],
optimization: {
concatenateModules: false

View File

@ -1,11 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
optimization: {
concatenateModules: true
},

View File

@ -1,12 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
},
optimization: {},
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
experiments: {
topLevelAwait: true,
deferImport: true

View File

@ -1,9 +1,4 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
// TODO: not sure why CI set optionalChaining to true on Node 10 and fails the test
environment: {
optionalChaining: false
}
}
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`]
};