Skip to content

Commit 9618415

Browse files
committed
ci: debug
1 parent 6ef105d commit 9618415

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/fixtures/process.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ export class ProcessWrap {
2929
this._webcontainerProcess = webcontainerProcess;
3030
this._writer = webcontainerProcess.input.getWriter();
3131

32-
webcontainerProcess.exit.then(() => setDone());
32+
webcontainerProcess.exit
33+
.then(() => {
34+
console.log("Stream closed, tick");
35+
return new Promise((resolve) => setTimeout(resolve, 100));
36+
})
37+
.then(setDone);
3338

3439
this._webcontainerProcess.output.pipeTo(
3540
new WritableStream({
3641
write: (data) => {
42+
console.log("received data");
3743
this._output += data;
3844
this._listeners.forEach((fn) => fn());
3945
},

test/mount.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test("user can mount directories from file-system to webcontainer", async ({
3535
`);
3636
});
3737

38-
test("user can mount inlined FileSystemTree to webcontainer", async ({
38+
test.skip("user can mount inlined FileSystemTree to webcontainer", async ({
3939
webcontainer,
4040
}) => {
4141
await webcontainer.mount({
@@ -68,7 +68,7 @@ test("user can mount inlined FileSystemTree to webcontainer", async ({
6868
);
6969
});
7070

71-
test("user should see error when attemping to mount files outside project root", async ({
71+
test.skip("user should see error when attemping to mount files outside project root", async ({
7272
webcontainer,
7373
}) => {
7474
await expect(() => webcontainer.mount("/home/non-existing")).rejects

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default defineConfig({
55
plugins: [vitestWebcontainers()],
66

77
test: {
8+
include: ["test/mount.test.ts"],
89
browser: {
910
enabled: true,
1011
provider: "playwright",

0 commit comments

Comments
 (0)