Created
April 21, 2020 15:55
-
-
Save jsumners/214883d1d4070bf81c3e0ea36f5d9cfc 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