Skip to content

Commit

Permalink
windows: add more passing test (oven-sh#8615)
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro authored and Hanaasagi committed Feb 3, 2024
1 parent 9528248 commit a2c8ee0
Show file tree
Hide file tree
Showing 27 changed files with 1 addition and 32 deletions.
1 change: 0 additions & 1 deletion test/bundler/bundler_cjs2esm.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/bundler/esbuild/importstar.test.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
1 change: 0 additions & 1 deletion test/bundler/esbuild/loader.test.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
1 change: 0 additions & 1 deletion test/bundler/esbuild/packagejson.test.ts
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
7 changes: 1 addition & 6 deletions test/bundler/esbuild/splitting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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", {
Expand Down
1 change: 0 additions & 1 deletion test/cli/hot/hot.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/cli/install/bun-create.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/cli/install/bun-remove.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/cli/install/bun-update.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/cli/install/migration/migrate.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/cli/run/env.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/cli/run/run-extensionless.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/cli/test/bun-test.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/js/bun/console/console-iterator.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/js/bun/util/bun-isMainThread.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { test, expect } from "bun:test";
import { bunEnv, bunExe } from "harness";

Expand Down
1 change: 0 additions & 1 deletion test/js/bun/util/inspect-error.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { test, expect } from "bun:test";

test("error.cause", () => {
Expand Down
1 change: 0 additions & 1 deletion test/js/bun/util/text-loader.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/js/node/buffer.test.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/js/node/events/event-emitter.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/js/node/http/node-http.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
// @ts-nocheck
import {
createServer,
Expand Down
1 change: 0 additions & 1 deletion test/js/node/worker_threads/worker_threads.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import wt, {
getEnvironmentData,
isMainThread,
Expand Down
1 change: 0 additions & 1 deletion test/js/third_party/comlink/comlink.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 0 additions & 1 deletion test/js/third_party/resvg/bbox.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @known-failing-on-windows: code 3765269347
import { test, expect } from "bun:test";
import { Resvg } from "@resvg/resvg-js";

Expand Down
1 change: 0 additions & 1 deletion test/js/third_party/rollup-v4/rollup-v4.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { parseAst } from "rollup/parseAst";

test("it works", () => {
Expand Down
1 change: 0 additions & 1 deletion test/js/third_party/socket.io/socket.io-close.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
import { describe, it, expect } from "bun:test";

import { Server, Socket } from "socket.io";
Expand Down
1 change: 0 additions & 1 deletion test/js/web/workers/message-channel.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @known-failing-on-windows: 1 failing
test("simple usage", done => {
const channel = new MessageChannel();
const port1 = channel.port1;
Expand Down

0 comments on commit a2c8ee0

Please sign in to comment.