mikeal / ipjs

Universal JavaScript Build and Packaging
41 stars 4 forks source link

looks like the order of two modules is switched in the tests #22

Open jchris opened 1 year ago

jchris commented 1 year ago

This is what I get running the tests

╰─± node --version
v18.9.0
╰─± npm test

> ipjs@0.0.0-dev test
> npx standard && npx /Users/jchris/Documents/GitHub/estest/cli.js test/test-*.js

estest: (started: 8, passed: 7, failed: 1)
test/test-build.js pkg-kitchensink w/ tests failed:
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped

  "'use strict';\n" +
    '\n' +
    "var browser$1 = require('../src/browser.js');\n" +
    "var secondary = require('../src/secondary.js');\n" +
    "require('./lib/shared.js');\n" +
+   "var sub = require('../src/sub.js');\n" +
+   "var browser = require('../src/sub/browser.js');\n" +
-   "var browser = require('../src/sub/browser.js');\n" +
-   "var sub = require('../src/sub.js');\n" +
    '\n' +
...
    '};\n' +
    '\n' +
    'module.exports = testBasics'
    at verify (file:///Users/jchris/Documents/GitHub/ipjs/test/fixtures/verify.js:24:7)
    at async verify (file:///Users/jchris/Documents/GitHub/ipjs/test/fixtures/verify.js:20:7)
    at async verify (file:///Users/jchris/Documents/GitHub/ipjs/test/fixtures/verify.js:20:7)
    at async file:///Users/jchris/Documents/GitHub/ipjs/test/test-build.js:25:5
    at async test.fn (file:///Users/jchris/Documents/GitHub/estest/src/runner.js:53:7)
    at async _run (file:///Users/jchris/Documents/GitHub/estest/src/runner.js:95:7)