import { a, b, c, C, F } from "import-export-from.js";
import { legacyRelative } from "node:./import-export-legacy.js";
import { default as legacyPackage } from "node:pkg";

export var tests = {

    "imports and exports" (test) {
    
        test
        
        ._("exported variables")
        .equals(a, "export-a")
        .equals(b, "export-b")
        .equals(c, "export-c")
        
        ._("functions")
        .equals(F(), "export-F")
        
        ._("classes")
        .equals(C.x(), "export-C")
        
        ;
    },
    
    "legacy import" (test) {
    
        test
        
        ._("relative import")
        .equals(legacyRelative, "legacy-relative")
        
        ._("package import with default")
        .equals(legacyPackage, "legacy-package")
        
        ;
    }

};

import { a, b, c, C, F } from "import-export-from.js";
import { legacyRelative } from "node:./import-export-legacy.js";
import { exports as legacyPackage } from "node:pkg";

export var tests = {

    "imports and exports" (test) {
    
        test
        
        ._("exported variables")
        .equals(a, "export-a")
        .equals(b, "export-b")
        .equals(c, "export-c")
        
        ._("functions")
        .equals(F(), "export-F")
        
        ._("classes")
        .equals(C.x(), "export-C")
        
        ;
    },
    
    "legacy import" (test) {
    
        test
        
        ._("relative import")
        .equals(legacyRelative, "legacy-relative")
        
        ._("package import with default")
        .equals(legacyPackage(), "legacy-package")
        
        ;
    }

};

Update test for importing from a legacy package.
Update test for importing from a legacy package.
