This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 408
WIP(test): unify mocha/jasmine/jest test #1084
Open
JiaLiPassion
wants to merge
11
commits into
angular:master
Choose a base branch
from
JiaLiPassion:rxjs-test
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JiaLiPassion
force-pushed
the
rxjs-test
branch
15 times, most recently
from
May 8, 2018 18:54
f478889
to
791ce1a
Compare
JiaLiPassion
force-pushed
the
rxjs-test
branch
2 times, most recently
from
May 9, 2018 16:25
9478a81
to
9981118
Compare
JiaLiPassion
force-pushed
the
rxjs-test
branch
2 times, most recently
from
May 10, 2018 02:27
46dab96
to
b53ee3f
Compare
JiaLiPassion
changed the title
WIP(test): unify mocha/jasmine test
WIP(test): unify mocha/jasmine/jest test
May 10, 2018
JiaLiPassion
force-pushed
the
rxjs-test
branch
7 times, most recently
from
May 12, 2018 03:43
37177b4
to
7c4f1aa
Compare
JiaLiPassion
force-pushed
the
rxjs-test
branch
3 times, most recently
from
May 13, 2018 12:12
d60b1ea
to
95e3d88
Compare
JiaLiPassion
changed the title
WIP(test): unify mocha/jasmine/jest test
feat(test): unify mocha/jasmine/jest test
May 13, 2018
JiaLiPassion
changed the title
feat(test): unify mocha/jasmine/jest test
wIP(test): unify mocha/jasmine/jest test
Jun 18, 2018
JiaLiPassion
changed the title
wIP(test): unify mocha/jasmine/jest test
WIP(test): unify mocha/jasmine/jest test
Jun 18, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
let
zone-testing
can handlemocha/jasmine/jest
test cases without difference (almost).when load
zone-testing
, will auto check if usingjasmine
ormocha
, andzone-testing
will loadpatch
accordingly.Expose
async/fakeAsync/tick/flush/discardPeriodicTasks/flushMicrotasks/resetFakeAsyncZone
APIs toglobal
, so user can use those APIs directly.And add
clearAllMacrotasks
,flushAndDiscardPeriodicTasks
helper methods.jasmine/jest
mapping inMocha
patch, so user can write case injasmine
style and API and can still useMocha
as runner to test.jasmine expect
jasmine spy
jasmine clock
BDD mapping
such as (beforeAll/afterAll/fdescribe/fit/pending...)jest expect
jest mockFn
jest TimerMock
Refactoring
test/build/doc
folder, current there are too manytest/karma/ci
file inroot
folder or intest
folder, so re-organize the folder.Add
zone-testing.typing.d.ts
, https://github.com/JiaLiPassion/zone.js/blob/26a2b611aa07e71d4af734f620f29a802b61ebc3/lib/testing/zone-testing.typing.ts, it defines all supportedjasmine/mocha/jest
APIs.User can still use
jasmine
ormocha
orjest
type definition if they don't want to use thiszone-testing mix
.Because this
zone-testing.typing.d.ts
will have conflict (duplicate declaration) withjasmine
ormocha
orjest
type definition, so maybe we shouldpublish
thiszone-testing.typing.d.ts
to@types
repo?