windows: add more passing test (#8615)

This commit is contained in:
Meghan Denny
2024-02-01 13:45:47 -08:00
committed by GitHub
parent 0037dc2537
commit 3a7df3f6c7
27 changed files with 1 additions and 32 deletions

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: panic "TODO on Windows"
import assert from "assert";
import dedent from "dedent";
import { itBundled, testForFile } from "./expectBundled";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: panic "TODO on Windows"
import assert from "assert";
import { itBundled, testForFile } from "../expectBundled";
var { describe, test, expect } = testForFile(import.meta.path);

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: panic "TODO on Windows"
import fs from "fs";
import { itBundled, testForFile } from "../expectBundled";
var { describe, test, expect } = testForFile(import.meta.path);

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: panic "TODO on Windows"
import { itBundled, testForFile } from "../expectBundled";
var { describe, test, expect } = testForFile(import.meta.path);

View File

@@ -2,9 +2,6 @@ import assert from "assert";
import { readdirSync } from "fs";
import { itBundled, testForFile } from "../expectBundled";
var { describe, test, expect } = testForFile(import.meta.path);
import process from "node:process";
const isWindows = process.platform === "win32";
// Tests ported from:
// https://github.com/evanw/esbuild/blob/main/internal/bundler_tests/bundler_splitting_test.go
@@ -278,9 +275,7 @@ describe("bundler", () => {
{ file: "/out/b.js", stdout: "[null]" },
],
bundleWarnings: {
[isWindows ? "\\common.js" : "/common.js"]: [
`Import "missing" will always be undefined because there is no matching export in "empty.js"`,
],
"/common.js": [`Import "missing" will always be undefined because there is no matching export in "empty.js"`],
},
});
itBundled("splitting/ReExportESBuildIssue273", {

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { spawn } from "bun";
import { expect, it } from "bun:test";
import { bunExe, bunEnv, tempDirWithFiles, bunRun, bunRunAsScript } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { spawn, spawnSync } from "bun";
import { afterEach, beforeEach, expect, it, describe } from "bun:test";
import { bunExe, bunEnv as env } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { bunExe, bunEnv as env } from "harness";
import { mkdir, mkdtemp, realpath, rm, writeFile } from "fs/promises";
import { join, relative } from "path";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { file, listen, Socket, spawn } from "bun";
import { afterAll, afterEach, beforeAll, beforeEach, expect, it } from "bun:test";
import { bunExe, bunEnv as env, toBeValidBin, toHaveBins } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import fs from "fs";
import { test, expect, beforeAll, afterAll } from "bun:test";
import { bunEnv, bunExe } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { describe, expect, test, beforeAll, afterAll } from "bun:test";
import { bunRun, bunRunAsScript, bunTest, tempDirWithFiles, bunExe, bunEnv } from "harness";
import path from "path";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { expect, test } from "bun:test";
import { mkdirSync, realpathSync } from "fs";
import { bunEnv, bunExe } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { join, resolve, dirname } from "node:path";
import { tmpdir } from "node:os";
import { mkdtempSync, writeFileSync, rmSync, mkdirSync } from "node:fs";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { spawnSync, spawn } from "bun";
import { describe, expect, it } from "bun:test";
import { bunExe } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { test, expect } from "bun:test";
import { bunEnv, bunExe } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { test, expect } from "bun:test";
test("error.cause", () => {

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { spawnSync } from "bun";
import { describe, expect, it } from "bun:test";
import { bunEnv, bunExe } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { Buffer, SlowBuffer, isAscii, isUtf8 } from "buffer";
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
import { gc } from "harness";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { test, describe, expect } from "bun:test";
import { sleep } from "bun";
import { createRequire } from "module";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
// @ts-nocheck
import {
createServer,

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import wt, {
getEnvironmentData,
isMainThread,

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { test, expect, describe } from "bun:test";
import { join } from "path";
import * as Comlink from "comlink";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: code 3765269347
import { test, expect } from "bun:test";
import { Resvg } from "@resvg/resvg-js";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { parseAst } from "rollup/parseAst";
test("it works", () => {

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { describe, it, expect } from "bun:test";
import { io as ioc } from "socket.io-client";
import { join } from "path";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { describe, it, expect } from "bun:test";
import { Server, Socket } from "socket.io";

View File

@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
test("simple usage", done => {
const channel = new MessageChannel();
const port1 = channel.port1;