Skip to content

Commit cf4d680

Browse files
Bump vitest from 2.1.8 to 3.0.4 (#402)
* Bump vitest from 2.1.8 to 3.0.4 Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 2.1.8 to 3.0.4. - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Commits](https://github.com/vitest-dev/vitest/commits/v3.0.4/packages/vitest) --- updated-dependencies: - dependency-name: vitest dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Fix context of LINKED_NODE_NOT_FOUND error --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Loris Leiva <[email protected]>
1 parent 7657300 commit cf4d680

File tree

4 files changed

+136
-368
lines changed

4 files changed

+136
-368
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"tsup": "^8.3.6",
3434
"turbo": "^2.3.4",
3535
"typescript": "^5.7.3",
36-
"vitest": "^2.1.8",
36+
"vitest": "^3.0.4",
3737
"zx": "^8.3.0"
3838
},
3939
"engines": {

packages/visitors-core/src/LinkableDictionary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class LinkableDictionary {
9999
kind: linkNode.kind,
100100
linkNode,
101101
name: linkNode.name,
102-
path: linkablePath,
102+
path: linkPath,
103103
});
104104
}
105105

packages/visitors-core/test/recordLinkablesVisitor.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,16 @@ test('it can throw an exception when trying to retrieve a missing linked node',
332332
visit(node, visitor);
333333

334334
// When we try to retrieve a missing account node.
335-
const getMissingAccount = () => linkables.getOrThrow([node, accountLinkNode('missingAccount', 'myProgram')]);
335+
const linkNode = accountLinkNode('missingAccount', 'myProgram');
336+
const getMissingAccount = () => linkables.getOrThrow([node, linkNode]);
336337

337338
// Then we expect an exception to be thrown.
338339
expect(getMissingAccount).toThrow(
339340
new CodamaError(CODAMA_ERROR__LINKED_NODE_NOT_FOUND, {
340341
kind: 'accountLinkNode',
341-
linkNode: accountLinkNode('missingAccount', 'myProgram'),
342+
linkNode,
342343
name: 'missingAccount',
343-
stack: [],
344+
path: [node, linkNode],
344345
}),
345346
);
346347
});

0 commit comments

Comments
 (0)