[WIP] Supports <script type="module"> tag #2425
pull-request-validation.yml
on: pull_request
Build
3m 30s
Unit test
5m 9s
Build samples
26s
Static code analysis
4m 36s
Type definitions test
3m 11s
Matrix: html-test
Merge test results
46s
Merge test snapshots
4s
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
|
|