[WIP] Supports <script type="module"> tag #2424
pull-request-validation.yml
on: pull_request
Build
3m 8s
Unit test
5m 2s
Build samples
25s
Static code analysis
4m 46s
Type definitions test
3m 4s
Matrix: html-test
Merge test results
1m 49s
Merge test snapshots
4s
Annotations
10 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)
|
|
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)
|
|
Merge test snapshots
No artifacts found matching pattern 'test-snapshot-diff-*'
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
docker
Expired
|
104 MB |
sha256:37c8ea7cc3f4f17756301c304d1e2ba27c32c1ec20c7d1a4258098cb68d5fa37
|
|
|
test-result
Expired
|
1.85 MB |
sha256:e9d45283822bb46a516b1eb82188ae7f59940f6597c235d1b35299ff6c7c4bb9
|
|