diff options
author | 2021-09-22 01:02:32 -0700 | |
---|---|---|
committer | 2021-09-22 01:02:32 -0700 | |
commit | a48a02bade5079ab7c5ddd293ba8dc3b2f87ed26 (patch) | |
tree | 152843c5cac9910fe8e21610053a1a694325a553 /integration/snapshots/export.debug.js | |
parent | 2326a1e1050d19a9b958893f07414f89e42dc82c (diff) | |
download | bun-a48a02bade5079ab7c5ddd293ba8dc3b2f87ed26.tar.gz bun-a48a02bade5079ab7c5ddd293ba8dc3b2f87ed26.tar.zst bun-a48a02bade5079ab7c5ddd293ba8dc3b2f87ed26.zip |
Switch to a single directory for storing snapshots and explicitly note whats a debug snapshot and a non-debug snapshot
Diffstat (limited to 'integration/snapshots/export.debug.js')
-rw-r--r-- | integration/snapshots/export.debug.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/integration/snapshots/export.debug.js b/integration/snapshots/export.debug.js new file mode 100644 index 000000000..534cb2a0c --- /dev/null +++ b/integration/snapshots/export.debug.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); +} |