mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
6a847ba6d1
* eng: add support for snapshot tests This adds Jest-like support for snapshot testing. Developers can do something like: ```js await assertSnapshot(myComplexObject) ``` The first time this is run, the snapshot expectation file is written to a `__snapshots__` directory beside the test file. Subsequent runs will compare the object to the snapshot, and fail if it doesn't match. You can see an example of this in the test for snapshots themselves! After a successful run, any unused snapshots are cleaned up. On a failed run, a gitignored `.actual` snapshot file is created beside the snapshot for easy processing and inspection. Shortly I will do some integration with the selfhost test extension to allow developers to easily update snapshots from the vscode UI. For #189680 cc @ulugbekna @hediet * fix async stacktraces getting clobbered * random fixes * comment out leak detector, for now * add option to snapshot file extension
21 lines
277 B
Text
21 lines
277 B
Text
.DS_Store
|
|
.cache
|
|
npm-debug.log
|
|
Thumbs.db
|
|
node_modules/
|
|
.build/
|
|
extensions/**/dist/
|
|
/out*/
|
|
/extensions/**/out/
|
|
build/node_modules
|
|
coverage/
|
|
test_data/
|
|
test-results/
|
|
yarn-error.log
|
|
vscode.lsif
|
|
vscode.db
|
|
/.profile-oss
|
|
/cli/target
|
|
/cli/openssl
|
|
product.overrides.json
|
|
*.snap.actual
|