Skip to content

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

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

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

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

pull-request-validation.yml

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

Annotations

12 errors and 1 warning
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)
should call error for all subscribers: packages/directlinespeech/src/shareObservable.js#L7
ReferenceError: Observable is not defined at shareObservable (packages/directlinespeech/src/shareObservable.js:7:3) at Object.<anonymous> (packages/directlinespeech/src/shareObservable.spec.js:79:39)
should call next/complete for all subscribers: packages/directlinespeech/src/shareObservable.js#L7
ReferenceError: Observable is not defined at shareObservable (packages/directlinespeech/src/shareObservable.js:7:3) at Object.<anonymous> (packages/directlinespeech/src/shareObservable.spec.js:37:39)
should unsubscribe when there are no subscribers: packages/directlinespeech/src/shareObservable.js#L7
ReferenceError: Observable is not defined at shareObservable (packages/directlinespeech/src/shareObservable.js:7:3) at Object.<anonymous> (packages/directlinespeech/src/shareObservable.spec.js:23:39)
should only subscribe when there is at least one subscriber: packages/directlinespeech/src/shareObservable.js#L7
ReferenceError: Observable is not defined at shareObservable (packages/directlinespeech/src/shareObservable.js:7:3) at Object.<anonymous> (packages/directlinespeech/src/shareObservable.spec.js:10:39)
HTML test (2/17)
Process completed with exit code 1.
Sample › samples/boot/exports.html: https://webchat2/__tests__/html2/samples/dist/boot/exports.js#L1
expect(received).toHaveProperty(path, value) Expected path: "moduleFormat" Received path: [] Expected value: "esmodules" Received value: {} at https:/webchat2/__tests__/html2/samples/dist/boot/exports.js:1:723
Merge test snapshots
No artifacts found matching pattern 'test-snapshot-diff-*'
HTML test (2/17)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/* ./__tests__/html2/**/*.snap-*-diff.png. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size Digest
docker Expired
104 MB
sha256:25ffad8dab1e9698c10e61d166f93ebfb73bd963f4717dd8dd07432e80dc0a78
test-result Expired
1.85 MB
sha256:9340aa62114b30f31c2eba76ab91c2d718a5571ae789ee943ed4e9c91b8d16e5