Add types to unit test #63
pull-request-validation.yml
on: push
Matrix: html-test
Merge test result
12s
Annotations
6 errors and 1 warning
Race condition between connect slow and connect:
packages/core/src/__tests__/detectSlowConnectionSaga.spec.js#L85
TypeError: Cannot assign to read only property 'performance' of object '[object global]'
at hijackMethod (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:946:32)
at Object.install (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1733:17)
at FakeTimers.useFakeTimers (node_modules/@jest/fake-timers/build/modernFakeTimers.js:110:36)
at Object.useFakeTimers (packages/core/src/__tests__/detectSlowConnectionSaga.spec.js:85:8)
|
Unit test
Process completed with exit code 1.
|
compiling TypeScript files › in /pass/ folder › should pass:
__tests__/types/typescript.js#L52
expect(received).toHaveProperty(path, value)
Expected path: ["additional-style-options-in-full.ts", "errors"]
- Expected value - 1
+ Received value + 3
- Array []
+ Array [
+ "/home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/types/__typescript__/pass/additional-style-options-in-full.ts (1,32): Cannot find module '../../../../packages/bundle' or its corresponding type declarations.",
+ ]
at Object.toHaveProperty (__tests__/types/typescript.js:52:25)
|
HTML test (13/20)
Process completed with exit code 1.
|
update activity › should not replace activity without activity ID:
packages/test/harness/src/host/common/host/snapshot.js#L13
Expected image to match or be a close match to snapshot but was 16.42578125% different from snapshot (37845 differing pixels).
See diff for details: /home/runner/work/BotFramework-WebChat/BotFramework-WebChat/__tests__/__image_snapshots__/html/__diff_output__/update-activity-undefined-activity-id-js-update-activity-should-not-replace-activity-without-activity-id-2-snap-diff.png
at toMatchImageSnapshot (packages/test/harness/src/host/common/host/snapshot.js:13:24)
at tryCatch (packages/test/harness/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
at Generator.<anonymous> (packages/test/harness/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
at Generator.next (packages/test/harness/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
at asyncGeneratorStep (packages/test/harness/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (packages/test/harness/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
|
HTML test (6/20)
Process completed with exit code 1.
|
HTML test (13/20)
No files were found with the provided path: ./__tests__/__image_snapshots__/*/__diff_output__/*. No artifacts will be uploaded.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
docker
Expired
|
94.4 MB |
|
test-result
Expired
|
9.77 MB |
|
test-snapshot-diff
Expired
|
201 KB |
|