Skip to content

Commit

Permalink
Revert "Does CI match my local env?" (it does)
Browse files Browse the repository at this point in the history
This reverts commit 037db3f.
  • Loading branch information
NullVoxPopuli committed Nov 1, 2024
1 parent f6dd52e commit 10685e0
Show file tree
Hide file tree
Showing 4 changed files with 903 additions and 78 deletions.
102 changes: 99 additions & 3 deletions test/__snapshots__/batman-fixture-based-integration-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,107 @@ Array [
},
},
},
Object {
"data": Object {
"files": Array [
"lib/boo/addon/templates/components/bar.hbs",
"lib/foo/addon/components/bar.js",
"lib/foo/addon/templates/components/bar.hbs",
],
},
"detail": "component",
"kind": 7,
"label": "Boo$Bar",
"textEdit": Object {
"newText": "Boo$Bar",
"range": Object {
"end": Object {
"character": 1,
"line": 0,
},
"start": Object {
"character": 1,
"line": 0,
},
},
},
},
Object {
"detail": "component",
"kind": 7,
"label": "Foo$Bar",
"textEdit": Object {
"newText": "Foo$Bar",
"range": Object {
"end": Object {
"character": 1,
"line": 0,
},
"start": Object {
"character": 1,
"line": 0,
},
},
},
},
]
`;

exports[`With \`batman project\` initialized on server Completion request returns all angle-bracket in a element expression for in repo addons with batman syntax 1`] = `Array []`;
exports[`With \`batman project\` initialized on server Completion request returns all angle-bracket in a element expression for in repo addons with batman syntax 1`] = `
Array [
Object {
"detail": "component",
"kind": 7,
"label": "Foo$Bar",
"textEdit": Object {
"newText": "Foo$Bar",
"range": Object {
"end": Object {
"character": 2,
"line": 1,
},
"start": Object {
"character": 1,
"line": 1,
},
},
},
},
]
`;

exports[`With \`batman project\` initialized on server Definition request return proper component location from batman syntax component name 1`] = `Array []`;
exports[`With \`batman project\` initialized on server Definition request return proper component location from batman syntax component name 1`] = `
Array [
Object {
"range": Object {
"end": Object {
"character": 0,
"line": 0,
},
"start": Object {
"character": 0,
"line": 0,
},
},
"uri": "/lib/boo/addon/templates/components/bar.hbs",
},
]
`;

exports[`With \`batman project\` initialized on server return proper import location from in-repo addon 1`] = `Array []`;
exports[`With \`batman project\` initialized on server return proper import location from in-repo addon 1`] = `
Array [
Object {
"range": Object {
"end": Object {
"character": 0,
"line": 0,
},
"start": Object {
"character": 0,
"line": 0,
},
},
"uri": "/lib/foo/addon/components/bar.js",
},
]
`;
74 changes: 73 additions & 1 deletion test/__snapshots__/fixture-based-integration-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,59 @@ Array [
},
},
},
Object {
"data": Object {
"files": Array [
"lib/foo/addon/templates/components/bar.hbs",
],
},
"detail": "component",
"kind": 7,
"label": "Bar",
"textEdit": Object {
"newText": "Bar",
"range": Object {
"end": Object {
"character": 2,
"line": 1,
},
"start": Object {
"character": 1,
"line": 1,
},
},
},
},
]
`;

exports[`With \`full-project\` initialized on server Completion request returns all angle-bracket in a element expression for in repo addons without batman syntax 1`] = `Array []`;
exports[`With \`full-project\` initialized on server Completion request returns all angle-bracket in a element expression for in repo addons without batman syntax 1`] = `
Array [
Object {
"data": Object {
"files": Array [
"lib/foo/addon/templates/components/bar.hbs",
],
},
"detail": "component",
"kind": 7,
"label": "Bar",
"textEdit": Object {
"newText": "Bar",
"range": Object {
"end": Object {
"character": 2,
"line": 1,
},
"start": Object {
"character": 1,
"line": 1,
},
},
},
},
]
`;

exports[`With \`full-project\` initialized on server Completion request returns all components and helpers when requesting completion items in a handlebars expression 1`] = `
Array [
Expand Down Expand Up @@ -126,6 +175,29 @@ Array [
},
},
},
Object {
"data": Object {
"files": Array [
"lib/foo/addon/templates/components/bar.hbs",
],
},
"detail": "component",
"kind": 7,
"label": "bar",
"textEdit": Object {
"newText": "bar",
"range": Object {
"end": Object {
"character": 2,
"line": 1,
},
"start": Object {
"character": 2,
"line": 1,
},
},
},
},
Object {
"data": Object {
"files": Array [
Expand Down
96 changes: 88 additions & 8 deletions test/__snapshots__/go-to-definition-integration-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,137 @@

exports[`script files named import definition resolution addon case default import from addon 1`] = `
Object {
"addonsMeta": Array [],
"addonsMeta": Array [
Object {
"name": "my-addon",
"root": "node_modules/my-addon",
"version": 1,
},
],
"registry": Object {
"component": Object {
"hello": Array [
"app/components/hello/index.js",
],
},
},
"response": Array [],
"response": Array [
Object {
"range": Object {
"end": Object {
"character": 14,
"line": 1,
},
"start": Object {
"character": 7,
"line": 1,
},
},
"uri": "/node_modules/my-addon/addon/utils/hello.js",
},
],
}
`;

exports[`script files named import definition resolution addon case named import from addon 1`] = `
Object {
"addonsMeta": Array [],
"addonsMeta": Array [
Object {
"name": "my-addon",
"root": "node_modules/my-addon",
"version": 1,
},
],
"registry": Object {
"component": Object {
"hello": Array [
"app/components/hello/index.js",
],
},
},
"response": Array [],
"response": Array [
Object {
"range": Object {
"end": Object {
"character": 17,
"line": 2,
},
"start": Object {
"character": 13,
"line": 2,
},
},
"uri": "/node_modules/my-addon/addon/utils/hello.js",
},
],
}
`;

exports[`script files named import definition resolution addon case not existing default import from addon 1`] = `
Object {
"addonsMeta": Array [],
"addonsMeta": Array [
Object {
"name": "my-addon",
"root": "node_modules/my-addon",
"version": 1,
},
],
"registry": Object {
"component": Object {
"hello": Array [
"app/components/hello/index.js",
],
},
},
"response": Array [],
"response": Array [
Object {
"range": Object {
"end": Object {
"character": 0,
"line": 0,
},
"start": Object {
"character": 0,
"line": 0,
},
},
"uri": "/node_modules/my-addon/addon/utils/hello.js",
},
],
}
`;

exports[`script files named import definition resolution addon case unknown named import from addon 1`] = `
Object {
"addonsMeta": Array [],
"addonsMeta": Array [
Object {
"name": "my-addon",
"root": "node_modules/my-addon",
"version": 1,
},
],
"registry": Object {
"component": Object {
"hello": Array [
"app/components/hello/index.js",
],
},
},
"response": Array [],
"response": Array [
Object {
"range": Object {
"end": Object {
"character": 0,
"line": 0,
},
"start": Object {
"character": 0,
"line": 0,
},
},
"uri": "/node_modules/my-addon/addon/utils/hello.js",
},
],
}
`;

Expand Down
Loading

0 comments on commit 10685e0

Please sign in to comment.