Skip to content

Commit

Permalink
chore: migrated shared-fixtures to ast-spec (#6436)
Browse files Browse the repository at this point in the history
* chore: migrated shared-fixtures to ast-spec

* Removed shared-fixtures package

* Updated snapshots

* Corrected last snapshot

* Updated typescript-estree test snapshots

* Moved to legacy-fixtures dir, with a bit of docs

* Revert "Moved to legacy-fixtures dir, with a bit of docs"

This reverts commit 1323b6c.

* rename unsorted-fixtures to legacy-fixtures
  • Loading branch information
JoshuaKGoldberg committed Feb 10, 2023
1 parent d5a6688 commit fb799e7
Show file tree
Hide file tree
Showing 3,324 changed files with 284,141 additions and 6,375 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ node_modules
dist
jest.config.js
fixtures
shared-fixtures
coverage
__snapshots__
.docusaurus
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
**/tests/fixture-project/**/*
**/dist
**/coverage
**/shared-fixtures
**/.vscode
**/.nyc_output
**/.vs
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// TODO: This fixture might be too large, and if so should be split up.

class Point {
@configurable(false)
get x() {
return this._x;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AST Fixtures legacy-fixtures accessor-decorators accessor-decorator-factory-instance-member TSESTree - AST 1`] = `
Program {
type: "Program",
body: Array [
ClassDeclaration {
type: "ClassDeclaration",
body: ClassBody {
type: "ClassBody",
body: Array [
MethodDefinition {
type: "MethodDefinition",
computed: false,
decorators: Array [
Decorator {
type: "Decorator",
expression: CallExpression {
type: "CallExpression",
arguments: Array [
Literal {
type: "Literal",
raw: "false",
value: false,
range: [103, 108],
loc: {
start: { column: 16, line: 4 },
end: { column: 21, line: 4 },
},
},
],
callee: Identifier {
type: "Identifier",
name: "configurable",
range: [90, 102],
loc: {
start: { column: 3, line: 4 },
end: { column: 15, line: 4 },
},
},
optional: false,
range: [90, 109],
loc: {
start: { column: 3, line: 4 },
end: { column: 22, line: 4 },
},
},
range: [89, 109],
loc: {
start: { column: 2, line: 4 },
end: { column: 22, line: 4 },
},
},
],
key: Identifier {
type: "Identifier",
name: "x",
range: [116, 117],
loc: {
start: { column: 6, line: 5 },
end: { column: 7, line: 5 },
},
},
kind: "get",
override: false,
static: false,
value: FunctionExpression {
type: "FunctionExpression",
async: false,
body: BlockStatement {
type: "BlockStatement",
body: Array [
ReturnStatement {
type: "ReturnStatement",
argument: MemberExpression {
type: "MemberExpression",
computed: false,
object: ThisExpression {
type: "ThisExpression",
range: [133, 137],
loc: {
start: { column: 11, line: 6 },
end: { column: 15, line: 6 },
},
},
optional: false,
property: Identifier {
type: "Identifier",
name: "_x",
range: [138, 140],
loc: {
start: { column: 16, line: 6 },
end: { column: 18, line: 6 },
},
},
range: [133, 140],
loc: {
start: { column: 11, line: 6 },
end: { column: 18, line: 6 },
},
},
range: [126, 141],
loc: {
start: { column: 4, line: 6 },
end: { column: 19, line: 6 },
},
},
],
range: [120, 145],
loc: {
start: { column: 10, line: 5 },
end: { column: 3, line: 7 },
},
},
expression: false,
generator: false,
id: null,
params: Array [],
range: [117, 145],
loc: {
start: { column: 7, line: 5 },
end: { column: 3, line: 7 },
},
},
range: [89, 145],
loc: {
start: { column: 2, line: 4 },
end: { column: 3, line: 7 },
},
},
],
range: [85, 147],
loc: {
start: { column: 12, line: 3 },
end: { column: 1, line: 8 },
},
},
id: Identifier {
type: "Identifier",
name: "Point",
range: [79, 84],
loc: {
start: { column: 6, line: 3 },
end: { column: 11, line: 3 },
},
},
superClass: null,
range: [73, 147],
loc: {
start: { column: 0, line: 3 },
end: { column: 1, line: 8 },
},
},
],
sourceType: "script",
range: [73, 148],
loc: {
start: { column: 0, line: 3 },
end: { column: 0, line: 9 },
},
}
`;

0 comments on commit fb799e7

Please sign in to comment.