Commit 5fe4776
authored
Introduce a Jest task (microsoft#391)
* Introduce a jest task
* Use ~ instead ^ in package.json
* Update shrinkwrap file
* Update api.ts files
* Update documentations in JestTask and make config parameters optional
* Add Jest to test-web-library-build (WIP)
* Convert api-documenter to use jest instead of mocha
* Convert tests in test-web-library-build to use jest
* Add the workaround for converting jest output from stderr to stdout.
* Add change file for the Jest task
* Ping types log4js to avoid broken types karma packages.
* Fix preCopyTest in test-web-library-build to use ES5
* Add isEnabled to jest.json and let it control whether tests run in jest or mocha/karma. And add more defaults to JestTask.
* Set collectCoverageFrom to get complete coverage.
* Update other api.ts files
* Update shrinkwrap file
* Rename isJestEnabled to _isJestEnabled
* Remove runInBand and maxWorkers from jest config.
* Add change files
* Copy snapshots from src to lib before Jest test and from lib to src if updating snapshots.
* Add a missing change file1 parent da6bda6 commit 5fe4776
File tree
32 files changed
+1303
-190
lines changed- common
- changes/@microsoft
- api-documenter
- gulp-core-build-karma
- gulp-core-build-mocha
- gulp-core-build
- node-library-build
- web-library-build
- config/rush
- reviews/api
- core-build
- gulp-core-build-karma/src
- gulp-core-build-mocha/src
- gulp-core-build
- src
- tasks
- node-library-build/src
- test-web-library-build
- config
- src
- test
- __snapshots__
- web-library-build/src
- libraries/api-documenter
- config
- src/utils/test
32 files changed
+1303
-190
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
236 | 244 | | |
237 | 245 | | |
238 | 246 | | |
| |||
0 commit comments