aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-05 18:29:41 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-05 18:29:41 -0700
commitcfb1c661d592adc44dc094176cd68709ca1140ee (patch)
tree35bc41d0b618d6b74b3ab1d6bc2b6b9fc2358056
parent864302a634ff4539c188845c981d4402e2a1a908 (diff)
downloadbun-cfb1c661d592adc44dc094176cd68709ca1140ee.tar.gz
bun-cfb1c661d592adc44dc094176cd68709ca1140ee.tar.zst
bun-cfb1c661d592adc44dc094176cd68709ca1140ee.zip
prepend
-rw-r--r--test/js/bun/test/preload-test.test.js10
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({