Skip to content

Fails on Bun #56

@ryoppippi

Description

@ryoppippi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions