Skip to content

Instantly share code, notes, and snippets.

@jsumners
Created April 21, 2020 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsumners/214883d1d4070bf81c3e0ea36f5d9cfc to your computer and use it in GitHub Desktop.
Save jsumners/214883d1d4070bf81c3e0ea36f5d9cfc to your computer and use it in GitHub Desktop.
self-ref testing
// `lib/bar.js`
module.exports = 'bar'
// `test/lib/bar.test.js`
const assert = require('assert')
const bar = require('foo/lib/bar')
assert.equal(bar, 'bar')
{
"name": "foo",
"exports": {
"./": "./"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment