diff options
author | 2021-09-17 03:14:23 -0700 | |
---|---|---|
committer | 2021-09-17 03:14:23 -0700 | |
commit | 1c7485e58c2fc02ceed4656752c5315178e9b9a9 (patch) | |
tree | 2633805273fb709ef1a20bc12d869033f74c810c /integration/snapshots-no-hmr/export.js | |
parent | 872428de89c63e0034573c1419fa616f8d0648b1 (diff) | |
download | bun-1c7485e58c2fc02ceed4656752c5315178e9b9a9.tar.gz bun-1c7485e58c2fc02ceed4656752c5315178e9b9a9.tar.zst bun-1c7485e58c2fc02ceed4656752c5315178e9b9a9.zip |
Begin to add integration tests
Diffstat (limited to 'integration/snapshots-no-hmr/export.js')
-rw-r--r-- | integration/snapshots-no-hmr/export.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/integration/snapshots-no-hmr/export.js b/integration/snapshots-no-hmr/export.js new file mode 100644 index 000000000..534cb2a0c --- /dev/null +++ b/integration/snapshots-no-hmr/export.js @@ -0,0 +1,31 @@ +import what from "http://localhost:8080/_auth.js"; +export {default as auth} from "http://localhost:8080/_auth.js"; + +export {default as login} from "http://localhost:8080/_login.js"; +export * from "http://localhost:8080/_bacon.js"; +export let yoyoyo = "yoyoyo"; + +export default function hey() { + return true; +} +export const foo = () => { +}; +export var bar = 100; +export let powerLevel = Symbol("9001"); + +export {what}; +export {what as when, what as whence}; +export {} from "http://localhost:8080/_bacon.js"; +import * as where from "http://localhost:8080/_auth.js"; + +export {where}; + +export {bar as booop}; +export function test() { + hey(); + foo(); + if (where.default !== "hi") + throw new Error(`_auth import is incorrect.`); + console.assert(powerLevel.description === "9001", "Symbol is not exported correctly"); + return testDone(import.meta.url); +} |