streams.test.js: todo failing macos test (#14513)

This commit is contained in:
Meghan Denny
2024-10-14 12:48:04 -07:00
committed by GitHub
parent e6ea389e4e
commit bebf762bcf

View File

@@ -7,13 +7,11 @@ import {
readableStreamToText,
} from "bun";
import { describe, expect, it, test } from "bun:test";
import { tmpdirSync } from "harness";
import { tmpdirSync, isWindows, isMacOS } from "harness";
import { mkfifo } from "mkfifo";
import { createReadStream, realpathSync, unlinkSync, writeFileSync } from "node:fs";
import { join } from "node:path";
const isWindows = process.platform === "win32";
it("TransformStream", async () => {
// https://developer.mozilla.org/en-US/docs/Web/API/TransformStream
const TextEncoderStreamInterface = {
@@ -427,7 +425,7 @@ it("ReadableStream.prototype.values", async () => {
expect(chunks.join("")).toBe("helloworld");
});
it.skipIf(isWindows)("Bun.file() read text from pipe", async () => {
it.todoIf(isWindows || isMacOS)("Bun.file() read text from pipe", async () => {
const fifoPath = join(tmpdirSync(), "bun-streams-test-fifo");
try {
unlinkSync(fifoPath);