-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make WindowsFileAttributes a packed struct and add a windows junction…
… test (#11161) Co-authored-by: Jarred Sumner <[email protected]> Co-authored-by: Jarred-Sumner <[email protected]>
- Loading branch information
1 parent
dcec690
commit 16e0f6e
Showing
6 changed files
with
112 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { tmpdirSync, bunEnv } from "harness"; | ||
import { bunExe } from "bun:harness"; | ||
import { expect, it } from "bun:test"; | ||
import * as path from "node:path"; | ||
|
||
it("successfully traverses pnpm-generated install directory", async () => { | ||
const package_dir = tmpdirSync(); | ||
console.log(package_dir); | ||
|
||
// | ||
|
||
let { exited } = Bun.spawn({ | ||
cmd: [bunExe(), "create", "vite", "my-vite-app", "--template", "solid-ts"], | ||
cwd: package_dir, | ||
stdio: ["ignore", "inherit", "inherit"], | ||
env: bunEnv, | ||
}); | ||
expect(await exited).toBe(0); | ||
console.log(1); | ||
|
||
// | ||
|
||
({ exited } = Bun.spawn({ | ||
cmd: ["pnpm", "install"], | ||
cwd: path.join(package_dir, "my-vite-app"), | ||
stdio: ["ignore", "inherit", "inherit"], | ||
env: bunEnv, | ||
})); | ||
expect(await exited).toBe(0); | ||
console.log(2); | ||
|
||
// | ||
|
||
({ exited } = Bun.spawn({ | ||
cmd: [bunExe(), "run", "build"], | ||
cwd: path.join(package_dir, "my-vite-app"), | ||
stdio: ["ignore", "inherit", "inherit"], | ||
env: bunEnv, | ||
})); | ||
expect(await exited).toBe(0); | ||
console.log(3); | ||
}, 100_000); |