Skip to content

[WIP] Supports <script type="module"> tag #2425

[WIP] Supports <script type="module"> tag

[WIP] Supports <script type="module"> tag #2425

Triggered via pull request September 13, 2025 06:57
Status Failure
Total duration 12m 23s
Artifacts 2

pull-request-validation.yml

on: pull_request
Matrix: html-test
Merge test results
46s
Merge test results
Merge test snapshots
4s
Merge test snapshots
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Build samples
Process completed with exit code 1.
Type definitions test
Process completed with exit code 1.
Unit test
Process completed with exit code 1.
CommonJS should export matching buildInfo: packages/directlinespeech/src/createWebSpeechPonyfillFactory.js#L3
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/esm-browser/index.js:1 ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export { default as v1 } from './v1.js'; ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/src/common/Guid.ts:4:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/src/common/PlatformEvent.ts:4:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/src/common/AudioSourceEvents.ts:6:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/src/common/Exports.ts:4:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/src/common.speech/CognitiveSubscriptionKeyAuthentication.ts:4:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/src/common.speech/Exports.ts:6:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/microsoft.cognitiveservices.speech.sdk.ts:4:1) at Object.<anonymous> (node_modules/web-speech-cognitive-services/src/SpeechServices/SpeechToText/createSpeechRecognitionPonyfill.ts:7:28) at Object.<anonymous> (packages/directlinespeech/src/createWebSpeechPonyfillFactory.js:3:63) at Object.requireActual (packages/directlinespeech/src/__tests__/addMetaTag.spec.js:5:30)
ESModules should export matching buildInfo: packages/directlinespeech/src/createWebSpeechPonyfillFactory.js#L3
Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration. By default "node_modules" folder is ignored by transformers. Here's what you can do: • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it. • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config. • If you need a custom transformation specify a "transform" option in your config. • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option. You'll find more details and examples of these config options in the docs: https://jestjs.io/docs/configuration For information about custom transformations, see: https://jestjs.io/docs/code-transformation Details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/node_modules/microsoft-cognitiveservices-speech-sdk/node_modules/uuid/dist/esm-browser/index.js:1 ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export { default as v1 } from './v1.js'; ^^^^^^ SyntaxError: Unexpected token 'export' at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/src/common/Guid.ts:4:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/src/common/PlatformEvent.ts:4:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/src/common/AudioSourceEvents.ts:6:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/src/common/Exports.ts:4:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/src/common.speech/CognitiveSubscriptionKeyAuthentication.ts:4:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/src/common.speech/Exports.ts:6:1) at Object.<anonymous> (node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/microsoft.cognitiveservices.speech.sdk.ts:4:1) at Object.<anonymous> (node_modules/web-speech-cognitive-services/src/SpeechServices/SpeechToText/createSpeechRecognitionPonyfill.ts:7:28) at Object.require (packages/directlinespeech/src/createWebSpeechPonyfillFactory.js:3:1) at Object.requireActual (packages/directlinespeech/src/__tests__/addMetaTag.spec.mjs:5:30)
Merge test snapshots
No artifacts found matching pattern 'test-snapshot-diff-*'

Artifacts

Produced during runtime
Name Size Digest
docker Expired
104 MB
sha256:496008c34a2382af642caf1293306ce2809db3b1c361cc83b57e6380728a18f4
test-result Expired
1.85 MB
sha256:98a71f182a017aae4136e1279b19db90b9f801abf1962e339bd17dcc00a2a87b