|
1 | 1 | import { Changeset } from "@changesets/types"; |
2 | 2 | import writeChangeset from "@changesets/write"; |
3 | 3 | import fixturez from "fixturez"; |
4 | | -import fs from "fs-extra"; |
5 | | -import path from "path"; |
| 4 | +import fs from "node:fs/promises"; |
| 5 | +import path from "node:path"; |
6 | 6 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
7 | 7 | import { Git } from "./git"; |
8 | 8 | import { setupOctokit } from "./octokit"; |
@@ -53,7 +53,7 @@ beforeEach(() => { |
53 | 53 | describe("version", () => { |
54 | 54 | it("creates simple PR", async () => { |
55 | 55 | let cwd = f.copy("simple-project"); |
56 | | - linkNodeModules(cwd); |
| 56 | + await linkNodeModules(cwd); |
57 | 57 |
|
58 | 58 | mockedGithubMethods.pulls.list.mockImplementationOnce(() => ({ data: [] })); |
59 | 59 |
|
@@ -91,7 +91,7 @@ describe("version", () => { |
91 | 91 |
|
92 | 92 | it("only includes bumped packages in the PR body", async () => { |
93 | 93 | let cwd = f.copy("simple-project"); |
94 | | - linkNodeModules(cwd); |
| 94 | + await linkNodeModules(cwd); |
95 | 95 |
|
96 | 96 | mockedGithubMethods.pulls.list.mockImplementationOnce(() => ({ data: [] })); |
97 | 97 |
|
@@ -125,7 +125,7 @@ describe("version", () => { |
125 | 125 |
|
126 | 126 | it("doesn't include ignored package that got a dependency update in the PR body", async () => { |
127 | 127 | let cwd = f.copy("ignored-package"); |
128 | | - linkNodeModules(cwd); |
| 128 | + await linkNodeModules(cwd); |
129 | 129 |
|
130 | 130 | mockedGithubMethods.pulls.list.mockImplementationOnce(() => ({ data: [] })); |
131 | 131 |
|
@@ -159,7 +159,7 @@ describe("version", () => { |
159 | 159 |
|
160 | 160 | it("does not include changelog entries if full message exceeds size limit", async () => { |
161 | 161 | let cwd = f.copy("simple-project"); |
162 | | - linkNodeModules(cwd); |
| 162 | + await linkNodeModules(cwd); |
163 | 163 |
|
164 | 164 | mockedGithubMethods.pulls.list.mockImplementationOnce(() => ({ data: [] })); |
165 | 165 |
|
@@ -217,7 +217,7 @@ fluminis divesque vulnere aquis parce lapsis rabie si visa fulmineis. |
217 | 217 |
|
218 | 218 | it("does not include any release information if a message with simplified release info exceeds size limit", async () => { |
219 | 219 | let cwd = f.copy("simple-project"); |
220 | | - linkNodeModules(cwd); |
| 220 | + await linkNodeModules(cwd); |
221 | 221 |
|
222 | 222 | mockedGithubMethods.pulls.list.mockImplementationOnce(() => ({ data: [] })); |
223 | 223 |
|
|
0 commit comments