Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e74d2e8

Browse files
committed
test: generate
1 parent 02b3577 commit e74d2e8

File tree

3,212 files changed

+497034
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,212 files changed

+497034
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`/Users/bradzacher/github/typescript-eslint/packages/shared-fixtures/fixtures/comments/block-trailing-comment.src.js parses with location information 1`] = `
4+
Object {
5+
"$id": 3,
6+
"block": Object {
7+
"range": Array [
8+
0,
9+
27,
10+
],
11+
"type": "Program",
12+
},
13+
"childScopes": Array [
14+
Object {
15+
"$id": 2,
16+
"block": Object {
17+
"range": Array [
18+
0,
19+
27,
20+
],
21+
"type": "Program",
22+
},
23+
"childScopes": Array [
24+
Object {
25+
"$id": 1,
26+
"block": Object {
27+
"range": Array [
28+
0,
29+
26,
30+
],
31+
"type": "BlockStatement",
32+
},
33+
"childScopes": Array [],
34+
"functionExpressionScope": false,
35+
"isStrict": true,
36+
"references": Array [
37+
Object {
38+
"$id": 0,
39+
"from": Object {
40+
"$ref": 1,
41+
},
42+
"identifier": Object {
43+
"name": "a",
44+
"range": Array [
45+
6,
46+
7,
47+
],
48+
"type": "Identifier",
49+
},
50+
"kind": "r",
51+
"resolved": null,
52+
"writeExpr": undefined,
53+
},
54+
],
55+
"throughReferences": Array [
56+
Object {
57+
"$ref": 0,
58+
},
59+
],
60+
"type": "block",
61+
"upperScope": Object {
62+
"$ref": 2,
63+
},
64+
"variableMap": Object {},
65+
"variableScope": Object {
66+
"$ref": 2,
67+
},
68+
"variables": Array [],
69+
},
70+
],
71+
"functionExpressionScope": false,
72+
"isStrict": true,
73+
"references": Array [],
74+
"throughReferences": Array [
75+
Object {
76+
"$ref": 0,
77+
},
78+
],
79+
"type": "module",
80+
"upperScope": Object {
81+
"$ref": 3,
82+
},
83+
"variableMap": Object {},
84+
"variableScope": Object {
85+
"$ref": 2,
86+
},
87+
"variables": Array [],
88+
},
89+
],
90+
"functionExpressionScope": false,
91+
"isStrict": false,
92+
"references": Array [],
93+
"throughReferences": Array [
94+
Object {
95+
"$ref": 0,
96+
},
97+
],
98+
"type": "global",
99+
"upperScope": null,
100+
"variableMap": Object {},
101+
"variableScope": Object {
102+
"$ref": 3,
103+
},
104+
"variables": Array [],
105+
}
106+
`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* This file has been auto generated.
3+
* Do not modify this file - any manual changes to this file will be lost.
4+
* Run `yarn generate-tests` in the `shared-fixtures` package to regenerate.
5+
*/
6+
7+
import path from 'path';
8+
import { testWithLocation } from 'test-fixture';
9+
10+
testWithLocation(
11+
path.resolve(
12+
process.cwd(),
13+
'..',
14+
'shared-fixtures',
15+
'fixtures/comments/block-trailing-comment.src.js',
16+
),
17+
{
18+
useJSXTextNode: false,
19+
},
20+
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`/Users/bradzacher/github/typescript-eslint/packages/shared-fixtures/fixtures/comments/comment-within-condition.src.js parses with location information 1`] = `
4+
Object {
5+
"$id": 3,
6+
"block": Object {
7+
"range": Array [
8+
10,
9+
31,
10+
],
11+
"type": "Program",
12+
},
13+
"childScopes": Array [
14+
Object {
15+
"$id": 2,
16+
"block": Object {
17+
"range": Array [
18+
10,
19+
31,
20+
],
21+
"type": "Program",
22+
},
23+
"childScopes": Array [
24+
Object {
25+
"$id": 1,
26+
"block": Object {
27+
"range": Array [
28+
28,
29+
30,
30+
],
31+
"type": "BlockStatement",
32+
},
33+
"childScopes": Array [],
34+
"functionExpressionScope": false,
35+
"isStrict": true,
36+
"references": Array [],
37+
"throughReferences": Array [],
38+
"type": "block",
39+
"upperScope": Object {
40+
"$ref": 2,
41+
},
42+
"variableMap": Object {},
43+
"variableScope": Object {
44+
"$ref": 2,
45+
},
46+
"variables": Array [],
47+
},
48+
],
49+
"functionExpressionScope": false,
50+
"isStrict": true,
51+
"references": Array [
52+
Object {
53+
"$id": 0,
54+
"from": Object {
55+
"$ref": 2,
56+
},
57+
"identifier": Object {
58+
"name": "a",
59+
"range": Array [
60+
25,
61+
26,
62+
],
63+
"type": "Identifier",
64+
},
65+
"kind": "r",
66+
"resolved": null,
67+
"writeExpr": undefined,
68+
},
69+
],
70+
"throughReferences": Array [
71+
Object {
72+
"$ref": 0,
73+
},
74+
],
75+
"type": "module",
76+
"upperScope": Object {
77+
"$ref": 3,
78+
},
79+
"variableMap": Object {},
80+
"variableScope": Object {
81+
"$ref": 2,
82+
},
83+
"variables": Array [],
84+
},
85+
],
86+
"functionExpressionScope": false,
87+
"isStrict": false,
88+
"references": Array [],
89+
"throughReferences": Array [
90+
Object {
91+
"$ref": 0,
92+
},
93+
],
94+
"type": "global",
95+
"upperScope": null,
96+
"variableMap": Object {},
97+
"variableScope": Object {
98+
"$ref": 3,
99+
},
100+
"variables": Array [],
101+
}
102+
`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* This file has been auto generated.
3+
* Do not modify this file - any manual changes to this file will be lost.
4+
* Run `yarn generate-tests` in the `shared-fixtures` package to regenerate.
5+
*/
6+
7+
import path from 'path';
8+
import { testWithLocation } from 'test-fixture';
9+
10+
testWithLocation(
11+
path.resolve(
12+
process.cwd(),
13+
'..',
14+
'shared-fixtures',
15+
'fixtures/comments/comment-within-condition.src.js',
16+
),
17+
{
18+
useJSXTextNode: false,
19+
},
20+
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`/Users/bradzacher/github/typescript-eslint/packages/shared-fixtures/fixtures/comments/export-default-anonymous-class.src.js parses with location information 1`] = `
4+
Object {
5+
"$id": 4,
6+
"block": Object {
7+
"range": Array [
8+
36,
9+
122,
10+
],
11+
"type": "Program",
12+
},
13+
"childScopes": Array [
14+
Object {
15+
"$id": 3,
16+
"block": Object {
17+
"range": Array [
18+
36,
19+
122,
20+
],
21+
"type": "Program",
22+
},
23+
"childScopes": Array [
24+
Object {
25+
"$id": 2,
26+
"block": Object {
27+
"range": Array [
28+
51,
29+
121,
30+
],
31+
"type": "ClassDeclaration",
32+
},
33+
"childScopes": Array [
34+
Object {
35+
"$id": 1,
36+
"block": Object {
37+
"range": Array [
38+
110,
39+
119,
40+
],
41+
"type": "FunctionExpression",
42+
},
43+
"childScopes": Array [],
44+
"functionExpressionScope": false,
45+
"isStrict": true,
46+
"references": Array [],
47+
"throughReferences": Array [],
48+
"type": "function",
49+
"upperScope": Object {
50+
"$ref": 2,
51+
},
52+
"variableMap": Object {
53+
"arguments": Object {
54+
"$ref": 0,
55+
},
56+
},
57+
"variableScope": Object {
58+
"$ref": 1,
59+
},
60+
"variables": Array [
61+
Object {
62+
"$id": 0,
63+
"defs": Array [],
64+
"eslintUsed": undefined,
65+
"identifiers": Array [],
66+
"name": "arguments",
67+
"references": Array [],
68+
"scope": Object {
69+
"$ref": 1,
70+
},
71+
},
72+
],
73+
},
74+
],
75+
"functionExpressionScope": false,
76+
"isStrict": true,
77+
"references": Array [],
78+
"throughReferences": Array [],
79+
"type": "class",
80+
"upperScope": Object {
81+
"$ref": 3,
82+
},
83+
"variableMap": Object {},
84+
"variableScope": Object {
85+
"$ref": 3,
86+
},
87+
"variables": Array [],
88+
},
89+
],
90+
"functionExpressionScope": false,
91+
"isStrict": true,
92+
"references": Array [],
93+
"throughReferences": Array [],
94+
"type": "module",
95+
"upperScope": Object {
96+
"$ref": 4,
97+
},
98+
"variableMap": Object {},
99+
"variableScope": Object {
100+
"$ref": 3,
101+
},
102+
"variables": Array [],
103+
},
104+
],
105+
"functionExpressionScope": false,
106+
"isStrict": false,
107+
"references": Array [],
108+
"throughReferences": Array [],
109+
"type": "global",
110+
"upperScope": null,
111+
"variableMap": Object {},
112+
"variableScope": Object {
113+
"$ref": 4,
114+
},
115+
"variables": Array [],
116+
}
117+
`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* This file has been auto generated.
3+
* Do not modify this file - any manual changes to this file will be lost.
4+
* Run `yarn generate-tests` in the `shared-fixtures` package to regenerate.
5+
*/
6+
7+
import path from 'path';
8+
import { testWithLocation } from 'test-fixture';
9+
10+
testWithLocation(
11+
path.resolve(
12+
process.cwd(),
13+
'..',
14+
'shared-fixtures',
15+
'fixtures/comments/export-default-anonymous-class.src.js',
16+
),
17+
{
18+
useJSXTextNode: false,
19+
},
20+
);

0 commit comments

Comments
 (0)