diff options
Diffstat (limited to 'test/js/node/disabled-module.test.js')
-rw-r--r-- | test/js/node/disabled-module.test.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/js/node/disabled-module.test.js b/test/js/node/disabled-module.test.js deleted file mode 100644 index 7333a0f1f..000000000 --- a/test/js/node/disabled-module.test.js +++ /dev/null @@ -1,16 +0,0 @@ -import { expect, test } from "bun:test"; -import * as worker_threads from "worker_threads"; -import worker_threads_default from "worker_threads"; - -test("not implemented yet module masquerades as undefined and throws an error", () => { - expect(typeof worker_threads.default).toBe("undefined"); - expect(typeof worker_threads_default).toBe("undefined"); - expect(typeof worker_threads.getEnvironmentData).toBe("undefined"); - expect(typeof worker_threads_default.getEnvironmentData).toBe("undefined"); -}); - -test("esbuild functions with worker_threads stub", async () => { - const esbuild = await import("esbuild"); - const result = await esbuild.transform('console . log( "hello world" )', { minify: true }); - expect(result.code).toBe('console.log("hello world");\n'); -}); |