-
Notifications
You must be signed in to change notification settings - Fork 340
Open
Labels
bugSomething isn't workingSomething isn't workingcompiler:coreIssues for @typespec/compilerIssues for @typespec/compilertriaged:core
Milestone
Description
As part of upgrading dependency(#9730) in included eslint 10 which added a new rule which seems to have found a few bugs and dead code. There is those tests that seems to be not actually testing anything
packages/compiler/test/checker/references.test.ts
describe("reference sibling members", () => {
// Those tests look broken
// eslint-disable-next-line no-unassigned-vars
let linkedValue: Operation | undefined;
it("defined before", async () => {
testHost.addTypeSpecFile(
"main.tsp",
`
import "./test-link.js";
@test interface Foo {
one(): void;
@testLink(Foo.one)
two(): void;
}
`,
);
const { Foo } = (await testHost.compile("./main.tsp")) as {
Foo: Interface;
};
strictEqual(linkedValue, Foo.operations.get("a"));
});linkedvalue is never set and operations.get("a") doesn't exists either
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompiler:coreIssues for @typespec/compilerIssues for @typespec/compilertriaged:core