https://github.com/bmeurer/wtr-snapshot-issue
https://github.com/bmeurer/wtr-snapshot-issue
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bmeurer/wtr-snapshot-issue
- Owner: bmeurer
- Created: 2020-11-05T18:44:44.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-05T18:45:02.000Z (over 5 years ago)
- Last Synced: 2025-01-22T21:32:05.435Z (over 1 year ago)
- Language: JavaScript
- Size: 54.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Repro for the HTML snapshot issue with @web/test-runner
Reproduce it with the following steps:
```console
$ npm install
$ npm test
```
This will print the following output:
```
foo.test.js:
❌ foo > renders foo correctly
at: node_modules/@open-wc/semantic-dom-diff/chai-dom-diff.js:122:13
TypeError: Cannot destructure property 'index' of 'context' as it is undefined.
at Proxy.assertHtmlEqualsSnapshot (node_modules/@open-wc/semantic-dom-diff/chai-dom-diff.js:122:13)
at Proxy.equalSnapshot (node_modules/@open-wc/semantic-dom-diff/chai-dom-diff.js:173:37)
at Proxy.methodWrapper (node_modules/chai/chai.js:7824:25)
at n. (foo.test.js:6:23)
```