diff options
author | 2023-04-05 18:29:41 -0700 | |
---|---|---|
committer | 2023-04-05 18:29:41 -0700 | |
commit | cfb1c661d592adc44dc094176cd68709ca1140ee (patch) | |
tree | 35bc41d0b618d6b74b3ab1d6bc2b6b9fc2358056 | |
parent | 864302a634ff4539c188845c981d4402e2a1a908 (diff) | |
download | bun-cfb1c661d592adc44dc094176cd68709ca1140ee.tar.gz bun-cfb1c661d592adc44dc094176cd68709ca1140ee.tar.zst bun-cfb1c661d592adc44dc094176cd68709ca1140ee.zip |
prepend
-rw-r--r-- | test/js/bun/test/preload-test.test.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/js/bun/test/preload-test.test.js b/test/js/bun/test/preload-test.test.js index 2a093428d..0cc090fbd 100644 --- a/test/js/bun/test/preload-test.test.js +++ b/test/js/bun/test/preload-test.test.js @@ -41,7 +41,7 @@ test('says hello world', () => { }); `; -const bunfig = `preload = ["./preload.js"]`; +const bunfig = `test.preload = ["./preload.js"]`; describe("preload for bun:test", () => { test("works with bunfig", async () => { @@ -54,9 +54,7 @@ describe("preload for bun:test", () => { await Bun.write(mainPath, mainModule); await Bun.write(bunfigPath, bunfig); - const cmds = [ - [bunExe(), "test", mainPath], - ]; + const cmds = [[bunExe(), "test", mainPath]]; for (let cmd of cmds) { const { stderr, exitCode, stdout } = spawnSync({ @@ -83,9 +81,7 @@ describe("preload for bun:test", () => { await Bun.write(preloadPath, preloadModule); await Bun.write(mainPath, mainModule); - const cmds = [ - [bunExe(), `-r=${preloadPath}`, "test", mainPath], - ]; + const cmds = [[bunExe(), `-r=${preloadPath}`, "test", mainPath]]; for (let cmd of cmds) { const { stderr, exitCode, stdout } = spawnSync({ |