aboutsummaryrefslogtreecommitdiff
path: root/integration/macro
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
commit729d445b6885f69dd2c6355f38707bd42851c791 (patch)
treef87a7c408929ea3f57bbb7ace380cf869da83c0e /integration/macro
parent25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff)
downloadbun-729d445b6885f69dd2c6355f38707bd42851c791.tar.gz
bun-729d445b6885f69dd2c6355f38707bd42851c791.tar.zst
bun-729d445b6885f69dd2c6355f38707bd42851c791.zip
change the directory structurejarred/rename
Diffstat (limited to 'integration/macro')
-rw-r--r--integration/macro/assert.tsx4
-rw-r--r--integration/macro/fetchSync.tsx8
-rw-r--r--integration/macro/hello-fetch-macro.tsx5
-rw-r--r--integration/macro/loadMocks.tsx30
4 files changed, 0 insertions, 47 deletions
diff --git a/integration/macro/assert.tsx b/integration/macro/assert.tsx
deleted file mode 100644
index 8a6e4d822..000000000
--- a/integration/macro/assert.tsx
+++ /dev/null
@@ -1,4 +0,0 @@
-// This logs the result at build time
-export function unreachable(call) {
- throw new Error(call.arguments[0].toString() || "unreachable");
-}
diff --git a/integration/macro/fetchSync.tsx b/integration/macro/fetchSync.tsx
deleted file mode 100644
index ebe1566e6..000000000
--- a/integration/macro/fetchSync.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-export async function fetchSync(ctx) {
- const str = ctx.arguments[0].toString();
-
- const response = await fetch(str);
- const text = await response.text();
-
- return <string value={text} />;
-}
diff --git a/integration/macro/hello-fetch-macro.tsx b/integration/macro/hello-fetch-macro.tsx
deleted file mode 100644
index fa0de4a9d..000000000
--- a/integration/macro/hello-fetch-macro.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import { fetchSync } from "macro:./fetchSync.tsx";
-
-const synchronousFetch = fetchSync(`https://example.com`);
-
-console.log(synchronousFetch);
diff --git a/integration/macro/loadMocks.tsx b/integration/macro/loadMocks.tsx
deleted file mode 100644
index 4b7993c6d..000000000
--- a/integration/macro/loadMocks.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import { unreachable } from "macro:./assert";
-
-if (process.env.NODE_ENV !== "test")
- unreachable("This module should only be imported in tests");
-
-export const mockData = {
- Copilot: {
- id: "Copilot",
- name: "Copilot",
- description: "Copilot",
- icon: "https://s3.amazonaws.com/copilot-public/images/icons/Copilot.png",
- color: "#00AEEF",
- type: "service",
- tags: ["copilot"],
- categories: ["copilot"],
- links: [
- {
- id: "Copilot",
- name: "Copilot",
- url: "https://copilot.io",
- description: "Copilot",
- icon: "https://s3.amazonaws.com/copilot-public/images/icons/Copilot.png",
- color: "#00AEEF",
- type: "service",
- tags: ["copilot"],
- categories: ["copilot"],
- },
- ],
- },
-};