test(docs-infra): fix practical-observable-usage docs example tests with RxJS v7 (#43880)

Due to how `debounceTime()` works in RxJS v7, Jasmine's mock clock was
not enough to trigger it. This commit fixes it by providing a similar
mock clock that is able to mock all of `Date.now()`, `setInterval()` and
`setTimeout()`.

PR Close #43880
This commit is contained in:
George Kalpakas
2021-10-19 16:19:03 +03:00
committed by Alex Rickabaugh
parent bc5e29592c
commit 0fc4e66f6e
2 changed files with 98 additions and 16 deletions
+1 -1
View File
@@ -437,7 +437,7 @@ jobs:
assert(actual === expected, 'Expected RxJS v' + expected + ', but found v' + actual + '.');
"
# Exclude some examples that are not yet compatible with v7.
- run: yarn --cwd aio example-e2e --cliSpecsConcurrency=5 --shard=${CIRCLE_NODE_INDEX}/${CIRCLE_NODE_TOTAL} --exclude=practical-observable-usage --exclude=upgrade-module --exclude=upgrade-phonecat
- run: yarn --cwd aio example-e2e --cliSpecsConcurrency=5 --shard=${CIRCLE_NODE_INDEX}/${CIRCLE_NODE_TOTAL} --exclude=upgrade-module --exclude=upgrade-phonecat
# This job should only be run on PR builds, where `CI_PULL_REQUEST` is not `false`.
aio_preview: