feat: allow to set web
/webworker
and node
environments
#18336
Closed
Azure Pipelines / webpack.webpack
failed
Apr 17, 2024 in 5m 51s
Build #20240417.4 had test failures
Details
- Failed: 4 (0.08%)
- Passed: 4,833 (99.71%)
- Other: 10 (0.21%)
- Total: 4,847
Annotations
Check failure on line 255 in Build log
azure-pipelines / webpack.webpack
Build log #L255
Bash exited with code '1'.
Check failure on line 1 in ConfigTestCases ecmaVersion browserslist browserslist should compile
azure-pipelines / webpack.webpack
ConfigTestCases ecmaVersion browserslist browserslist should compile
Test failed
Raw output
Error: expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `ConfigTestCases ecmaVersion browserslist browserslist should compile 1`
- Snapshot - 0
+ Received + 3
@@ -8,9 +8,12 @@
"dynamicImport": true,
"dynamicImportInWorker": false,
"forOf": true,
"globalThis": true,
"module": true,
+ "node": true,
"nodePrefixForCoreModules": true,
"optionalChaining": true,
"templateLiteral": true,
+ "web": false,
+ "webworker": false,
}
at /home/vsts/work/1/s/test/configCases/ecmaVersion/browserslist/webpack.config.js:7:51
at Hook.eval (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:100:1)
at Hook.CALL_DELEGATE [as _call] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/home/vsts/work/1/s/lib/Compiler.js:1255:26)
at /home/vsts/work/1/s/lib/Compiler.js:1299:29
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/home/vsts/work/1/s/lib/Compiler.js:1294:28)
at /home/vsts/work/1/s/lib/Compiler.js:573:12
at Compiler.readRecords (/home/vsts/work/1/s/lib/Compiler.js:1103:5)
at /home/vsts/work/1/s/lib/Compiler.js:570:11
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at /home/vsts/work/1/s/lib/Compiler.js:567:20
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at run (/home/vsts/work/1/s/lib/Compiler.js:564:25)
at Compiler.run (/home/vsts/work/1/s/lib/Compiler.js:587:4)
at webpack (/home/vsts/work/1/s/lib/webpack.js:157:15)
at f (/home/vsts/work/1/s/lib/index.js:75:16)
at Object.<anonymous> (/home/vsts/work/1/s/test/ConfigTestCases.template.js:709:22)
at Promise.then.completed (/home/vsts/work/1/s/node_modules/jest-circus/build/utils.js:290:26)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/vsts/work/1/s/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at run (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/vsts/work/1/s/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/vsts/work/1/s/node_modules/jest-runner/build/runTest.js:444:34)
azure-pipelines / webpack.webpack
ConfigTestCases ecmaVersion browserslist-config browserslist-config should compile
Test failed
Raw output
Error: expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `ConfigTestCases ecmaVersion browserslist-config browserslist-config should compile 1`
- Snapshot - 0
+ Received + 3
@@ -8,9 +8,12 @@
"dynamicImport": false,
"dynamicImportInWorker": false,
"forOf": false,
"globalThis": false,
"module": false,
+ "node": false,
"nodePrefixForCoreModules": false,
"optionalChaining": false,
"templateLiteral": false,
+ "web": true,
+ "webworker": false,
}
at /home/vsts/work/1/s/test/configCases/ecmaVersion/browserslist-config/webpack.config.js:9:51
at Hook.eval (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:100:1)
at Hook.CALL_DELEGATE [as _call] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/home/vsts/work/1/s/lib/Compiler.js:1255:26)
at /home/vsts/work/1/s/lib/Compiler.js:1299:29
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/home/vsts/work/1/s/lib/Compiler.js:1294:28)
at /home/vsts/work/1/s/lib/Compiler.js:573:12
at Compiler.readRecords (/home/vsts/work/1/s/lib/Compiler.js:1103:5)
at /home/vsts/work/1/s/lib/Compiler.js:570:11
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at /home/vsts/work/1/s/lib/Compiler.js:567:20
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at run (/home/vsts/work/1/s/lib/Compiler.js:564:25)
at Compiler.run (/home/vsts/work/1/s/lib/Compiler.js:587:4)
at webpack (/home/vsts/work/1/s/lib/webpack.js:157:15)
at f (/home/vsts/work/1/s/lib/index.js:75:16)
at Object.<anonymous> (/home/vsts/work/1/s/test/ConfigTestCases.template.js:709:22)
at Promise.then.completed (/home/vsts/work/1/s/node_modules/jest-circus/build/utils.js:290:26)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/vsts/work/1/s/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at run (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/vsts/work/1/s/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/vsts/work/1/s/node_modules/jest-runner/build/runTest.js:444:34)
azure-pipelines / webpack.webpack
ConfigTestCases ecmaVersion browserslist-config-env browserslist-config-env should compile
Test failed
Raw output
Error: expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `ConfigTestCases ecmaVersion browserslist-config-env browserslist-config-env should compile 1`
- Snapshot - 0
+ Received + 3
@@ -8,9 +8,12 @@
"dynamicImport": false,
"dynamicImportInWorker": false,
"forOf": false,
"globalThis": false,
"module": false,
+ "node": false,
"nodePrefixForCoreModules": false,
"optionalChaining": false,
"templateLiteral": false,
+ "web": true,
+ "webworker": false,
}
at /home/vsts/work/1/s/test/configCases/ecmaVersion/browserslist-config-env/webpack.config.js:9:51
at Hook.eval (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:100:1)
at Hook.CALL_DELEGATE [as _call] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/home/vsts/work/1/s/lib/Compiler.js:1255:26)
at /home/vsts/work/1/s/lib/Compiler.js:1299:29
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/home/vsts/work/1/s/lib/Compiler.js:1294:28)
at /home/vsts/work/1/s/lib/Compiler.js:573:12
at Compiler.readRecords (/home/vsts/work/1/s/lib/Compiler.js:1103:5)
at /home/vsts/work/1/s/lib/Compiler.js:570:11
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at /home/vsts/work/1/s/lib/Compiler.js:567:20
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at run (/home/vsts/work/1/s/lib/Compiler.js:564:25)
at Compiler.run (/home/vsts/work/1/s/lib/Compiler.js:587:4)
at webpack (/home/vsts/work/1/s/lib/webpack.js:157:15)
at f (/home/vsts/work/1/s/lib/index.js:75:16)
at Object.<anonymous> (/home/vsts/work/1/s/test/ConfigTestCases.template.js:709:22)
at Promise.then.completed (/home/vsts/work/1/s/node_modules/jest-circus/build/utils.js:290:26)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/vsts/work/1/s/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at run (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/vsts/work/1/s/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/vsts/work/1/s/node_modules/jest-runner/build/runTest.js:444:34)
azure-pipelines / webpack.webpack
ConfigTestCases ecmaVersion browserslist-query browserslist-query should compile
Test failed
Raw output
Error: expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `ConfigTestCases ecmaVersion browserslist-query browserslist-query should compile 1`
- Snapshot - 0
+ Received + 3
@@ -8,9 +8,12 @@
"dynamicImport": false,
"dynamicImportInWorker": false,
"forOf": false,
"globalThis": false,
"module": false,
+ "node": false,
"nodePrefixForCoreModules": false,
"optionalChaining": false,
"templateLiteral": false,
+ "web": true,
+ "webworker": false,
}
at /home/vsts/work/1/s/test/configCases/ecmaVersion/browserslist-query/webpack.config.js:7:51
at Hook.eval (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:100:1)
at Hook.CALL_DELEGATE [as _call] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/home/vsts/work/1/s/lib/Compiler.js:1255:26)
at /home/vsts/work/1/s/lib/Compiler.js:1299:29
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/home/vsts/work/1/s/lib/Compiler.js:1294:28)
at /home/vsts/work/1/s/lib/Compiler.js:573:12
at Compiler.readRecords (/home/vsts/work/1/s/lib/Compiler.js:1103:5)
at /home/vsts/work/1/s/lib/Compiler.js:570:11
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at /home/vsts/work/1/s/lib/Compiler.js:567:20
at Hook.eval [as callAsync] (eval at create (/home/vsts/work/1/s/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/vsts/work/1/s/node_modules/tapable/lib/Hook.js:18:14)
at run (/home/vsts/work/1/s/lib/Compiler.js:564:25)
at Compiler.run (/home/vsts/work/1/s/lib/Compiler.js:587:4)
at webpack (/home/vsts/work/1/s/lib/webpack.js:157:15)
at f (/home/vsts/work/1/s/lib/index.js:75:16)
at Object.<anonymous> (/home/vsts/work/1/s/test/ConfigTestCases.template.js:709:22)
at Promise.then.completed (/home/vsts/work/1/s/node_modules/jest-circus/build/utils.js:290:26)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/vsts/work/1/s/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:121:9)
at run (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/vsts/work/1/s/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/vsts/work/1/s/node_modules/jest-runner/build/runTest.js:444:34)