diff options
| author | 2023-03-20 05:57:23 -0700 | |
|---|---|---|
| committer | 2023-03-20 05:57:23 -0700 | |
| commit | 1a25af5e3dde2389c747e18d565cedf39c79a43d (patch) | |
| tree | ea07c80c6a6d30a78d1ef930c4a9249a84a40cb8 /test/cli/install/bad-workspace.test.ts | |
| parent | 343721627ee65caf504d67c5046b0da94bfeba72 (diff) | |
| download | bun-1a25af5e3dde2389c747e18d565cedf39c79a43d.tar.gz bun-1a25af5e3dde2389c747e18d565cedf39c79a43d.tar.zst bun-1a25af5e3dde2389c747e18d565cedf39c79a43d.zip | |
Implement simple `workspaces` glob support in bun install (#2435)
* [bun install] Implement `packages/*`-style globs
* Fix incorrect assertion
* :nail_care:
* remove extraneous console.log
* Fix pointer to stack memory
* Add a test with a scoped package name from a glob workspace
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test/cli/install/bad-workspace.test.ts')
| -rw-r--r-- | test/cli/install/bad-workspace.test.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/cli/install/bad-workspace.test.ts b/test/cli/install/bad-workspace.test.ts index 1feafc2b0..bd8f0b24d 100644 --- a/test/cli/install/bad-workspace.test.ts +++ b/test/cli/install/bad-workspace.test.ts @@ -12,7 +12,7 @@ test("bad workspace path", () => { JSON.stringify( { name: "hey", - workspaces: ["i-dont-exist", "*/i-have-a-star-and-i-dont-exist"], + workspaces: ["i-dont-exist", "**/i-have-a-2-stars-and-i-dont-exist", "*/i-have-a-star-and-i-dont-exist"], }, null, 2, @@ -28,7 +28,9 @@ test("bad workspace path", () => { const text = stderr!.toString(); expect(text).toContain('Workspace not found "i-dont-exist"'); - expect(text).toContain('Workspace not found "*/i-have-a-star-and-i-dont-exist"'); + expect(text).toContain("multi level globs"); + expect(text).toContain("glob star * in the middle of a path"); + expect(exitCode).toBe(1); rmSync(cwd, { recursive: true, force: true }); }); |
