Skip to content

Instantly share code, notes, and snippets.

@jsumners
Created April 21, 2020 16:04
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/fba059661a398338c4a1a8e29ac3db11 to your computer and use it in GitHub Desktop.
Save jsumners/fba059661a398338c4a1a8e29ac3db11 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