aboutsummaryrefslogtreecommitdiff
path: root/test/bundler/transpiler.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-03-28 18:23:50 -0700
committerGravatar GitHub <noreply@github.com> 2023-03-28 18:23:50 -0700
commitb76384351c55917692a9dc3b7f08f771a55b3fa1 (patch)
tree74a188ed15dac0f194e3e72fed4dd719ae4c601b /test/bundler/transpiler.test.js
parent0a914902269ebb1f5612385bd8b65aa1de4db71e (diff)
downloadbun-b76384351c55917692a9dc3b7f08f771a55b3fa1.tar.gz
bun-b76384351c55917692a9dc3b7f08f771a55b3fa1.tar.zst
bun-b76384351c55917692a9dc3b7f08f771a55b3fa1.zip
More bug fixes (#2486)
* readline_promises test fix * fix `escapeHTML` for baseline builds * fs test fixes, use `tmpdir()` * add paths for `resolve.test.js` * isError with toString symbol and error prototype * comment about `toString` * skip async macro transform * test cleanup, skip stack format test * readline undo and redo fix * capture error from readline keypress * Update tcp-server.test.ts * use `removefileat` for recursive rmdir * use strong for `signal.reason` * initialize `m_flags` * directory with file fs test * recursive option * import expect * could be less than * move abort signal tests to another process * fix typecheck --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
Diffstat (limited to 'test/bundler/transpiler.test.js')
-rw-r--r--test/bundler/transpiler.test.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/bundler/transpiler.test.js b/test/bundler/transpiler.test.js
index 38b19efc0..1b6decb17 100644
--- a/test/bundler/transpiler.test.js
+++ b/test/bundler/transpiler.test.js
@@ -2221,9 +2221,11 @@ console.log(foo, array);
});
describe("transform", () => {
- it("supports macros", async () => {
+ // Async transform doesn't work in the test runner. Skipping for now.
+ // This might be caused by incorrectly using shared memory between the two files.
+ it.skip("supports macros", async () => {
const out = await transpiler.transform(`
- import {keepSecondArgument} from 'macro:${import.meta.dir}/macro-check.js';
+ import {keepSecondArgument} from 'macro:${require.resolve("./macro-check.js")}';
export default keepSecondArgument("Test failed", "Test passed");
export function otherNamesStillWork() {}