Created
April 21, 2020 16:04
-
-
Save jsumners/fba059661a398338c4a1a8e29ac3db11 to your computer and use it in GitHub Desktop.
self-ref testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// `lib/bar.js` | |
module.exports = 'bar' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// `test/lib/bar.test.js` | |
const assert = require('assert') | |
const bar = require('foo/lib/bar') | |
assert.equal(bar, 'bar') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "foo", | |
"exports": { | |
"./": "./" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment