Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on Bun #56

Open
ryoppippi opened this issue Sep 19, 2023 · 2 comments
Open

Fails on Bun #56

ryoppippi opened this issue Sep 19, 2023 · 2 comments

Comments

@ryoppippi
Copy link

ryoppippi commented Sep 19, 2023

bun - v1.0.2

✦ ➜ bun i
 ➜ bun run test/test.js
• • • • • • • • ✘ • • • • • • • • ✘ ✘ • •   (18 / 21)

   FAIL  "basic"
    index.d.ts  (equal)

        ··declare·module·'basic'·{
        Expected:
        ++→/**·A·vector·with·two·components·*/
        ++→export·interface·Vector2·{
        ++→→/**·The·x·component·*/
        ++→→x:·number;
        ++→→/**·The·y·component·*/
        ++→→y:·number;
        ++→}
        ··→/**
        ··→·*·Add·two·vectors
        ··→·*·@param·a·the·first·vector
        ··→·*·@param·b·the·second·vector
        ··→·*·*/
        ··→export·function·add(a:·Vector2,·b:·Vector2):·Vector2;
        Actual:
        --→/**·A·vector·with·two·components·*/
        --→interface·Vector2·{
        --→→/**·The·x·component·*/
        --→→x:·number;
        --→→/**·The·y·component·*/
        --→→y:·number;
        --→}
        ··}
        ··↵
        ··declare·module·'basic/subpackage'·{
        ··→/**
        ··→·*·Multiply·two·vectors
        ··→·*·*/
        Actual:
        --→export·function·multiply(a:·any,·b:·any):·any;
        Expected:
        ++→export·function·multiply(a:·import('basic').Vector2,·b:·import('basic').Vector2):·import('basic').Vector2;
        ··}
        ··↵
        ··//#·sourceMappingURL=index.d.ts.map

    at <anonymous> (/private/tmp/dts-buddy/node_modules/uvu/assert/index.mjs:32:85)
    at equal (/private/tmp/dts-buddy/node_modules/uvu/assert/index.mjs:44:96)
    at <anonymous> (/private/tmp/dts-buddy/test/test.js:54:2)
    at asyncFunctionResume (native)
    at promiseReactionJobWithoutPromiseUnwrapAsyncContext (native)
    at promiseReactionJob (native)
    at processTicksAndRejections (native)


   FAIL  "ts"
    index.d.ts  (equal)

        Actual:
        --declare·module·'ts/subpackage'·{
        --→import·type·{·Vector2·}·from·'ts';
        --→/**
        --→·*·Multiply·two·vectors
        --→·*/
        --→export·function·multiply(a:·Vector2,·b:·Vector2):·Vector2;
        --}
        --↵
        ··declare·module·'ts'·{
        ··→/**·A·vector·with·two·components·*/
        ··→export·interface·Vector2·{
        ··→→/**·The·x·component·*/
        ··→→x:·number;
        ··→→/**·The·y·component·*/
        ··→→y:·number;
        ··→}
        ··→/**·A·vector·with·three·components·*/
        ··→export·interface·Vector3·extends·Vector2·{
        ··→→/**·The·z·component·*/
        ··→→z:·number;
        ··→}
        ··→/**
        ··→·*·Add·two·vectors
        ··→·*/
        ··→export·function·add(a:·Vector2,·b:·Vector2):·Vector2;
        ··}
        ··↵
        Expected:
        ++declare·module·'ts/subpackage'·{
        ++→import·type·{·Vector2·}·from·'ts';
        ++→/**
        ++→·*·Multiply·two·vectors
        ++→·*/
        ++→export·function·multiply(a:·Vector2,·b:·Vector2):·Vector2;
        ++}
        ++↵
        ··//#·sourceMappingURL=index.d.ts.map

    at <anonymous> (/private/tmp/dts-buddy/node_modules/uvu/assert/index.mjs:32:85)
    at equal (/private/tmp/dts-buddy/node_modules/uvu/assert/index.mjs:44:96)
    at <anonymous> (/private/tmp/dts-buddy/test/test.js:54:2)
    at asyncFunctionResume (native)
    at promiseReactionJobWithoutPromiseUnwrapAsyncContext (native)
    at promiseReactionJob (native)
    at processTicksAndRejections (native)


   FAIL  "export-default-as"
    index.d.ts  (equal)

        ··declare·module·'export-default-as'·{
        ··→/**
        ··→·*·Add·two·numbers
        ··→·*·*/
        Actual:
        --→export·default·function·add(a:·number,·b:·number):·number;
        Expected:
        ++→export·function·add(a:·number,·b:·number):·number;
        ··}
        ··↵
        ··//#·sourceMappingURL=index.d.ts.map

    at <anonymous> (/private/tmp/dts-buddy/node_modules/uvu/assert/index.mjs:32:85)
    at equal (/private/tmp/dts-buddy/node_modules/uvu/assert/index.mjs:44:96)
    at <anonymous> (/private/tmp/dts-buddy/test/test.js:54:2)
    at asyncFunctionResume (native)
    at promiseReactionJobWithoutPromiseUnwrapAsyncContext (native)
    at promiseReactionJob (native)
    at processTicksAndRejections (native)



  Total:     21
  Passed:    18
  Skipped:   0
  Duration:  15897.03ms
@ryoppippi ryoppippi changed the title Fails on Bun Fails on Bun & npm Sep 19, 2023
@ryoppippi ryoppippi changed the title Fails on Bun & npm Fails on Bun Sep 19, 2023
@Rich-Harris
Copy link
Owner

This should probably be raised on the Bun issue tracker

@ryoppippi
Copy link
Author

Ok Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants