Skip to content

Commit 999f272

Browse files
Timerromaindso
authored andcommitted
Adds tests for the overlay (facebook#2118)
* Add get-source-map tests * Fixtures shouldn't be formatted * Add mapper tests * Add stack-frame tests * Add more util tests * Add unmapper tests * Add parser tests * Switch to snapshots * Snapshot more
1 parent f28df27 commit 999f272

32 files changed

+84445
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
[
2+
{
3+
"functionName": "App.componentDidMount",
4+
"fileName": "http://localhost:3000/static/js/bundle.js",
5+
"lineNumber": 26122,
6+
"columnNumber": 21,
7+
"_originalFunctionName": "App.componentDidMount",
8+
"_originalFileName": "webpack:///packages/react-scripts/template/src/App.js",
9+
"_originalLineNumber": 7,
10+
"_originalColumnNumber": 0,
11+
"_scriptCode": [
12+
{
13+
"lineNumber": 26119,
14+
"content": " _createClass(App, [{",
15+
"highlight": false
16+
},
17+
{
18+
"lineNumber": 26120,
19+
"content": " key: 'componentDidMount',",
20+
"highlight": false
21+
},
22+
{
23+
"lineNumber": 26121,
24+
"content": " value: function componentDidMount() {",
25+
"highlight": false
26+
},
27+
{
28+
"lineNumber": 26122,
29+
"content": " document.body.missing();",
30+
"highlight": true
31+
},
32+
{
33+
"lineNumber": 26123,
34+
"content": " }",
35+
"highlight": false
36+
},
37+
{
38+
"lineNumber": 26124,
39+
"content": " }, {",
40+
"highlight": false
41+
},
42+
{
43+
"lineNumber": 26125,
44+
"content": " key: 'render',",
45+
"highlight": false
46+
}
47+
],
48+
"_originalScriptCode": [
49+
{
50+
"lineNumber": 4,
51+
"content": "",
52+
"highlight": false
53+
},
54+
{
55+
"lineNumber": 5,
56+
"content": "class App extends Component {",
57+
"highlight": false
58+
},
59+
{
60+
"lineNumber": 6,
61+
"content": " componentDidMount() {",
62+
"highlight": false
63+
},
64+
{
65+
"lineNumber": 7,
66+
"content": " document.body.missing()",
67+
"highlight": true
68+
},
69+
{
70+
"lineNumber": 8,
71+
"content": " }",
72+
"highlight": false
73+
},
74+
{
75+
"lineNumber": 9,
76+
"content": "",
77+
"highlight": false
78+
},
79+
{
80+
"lineNumber": 10,
81+
"content": " render() {",
82+
"highlight": false
83+
}
84+
]
85+
}
86+
]

0 commit comments

Comments
 (0)