-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support node v18 and drop node v12, make exports ESM-friendly (#86)
* Support node v18, drop node v12, make exports ESM-friendly * Clearer heading in API docs Co-authored-by: Gil Pedersen <[email protected]> Co-authored-by: Gil Pedersen <[email protected]>
- Loading branch information
Showing
7 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ on: | |
jobs: | ||
test: | ||
uses: hapijs/.github/.github/workflows/ci-module.yml@master | ||
with: | ||
min-node-version: 14 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use strict'; | ||
|
||
const Code = require('@hapi/code'); | ||
const Lab = require('@hapi/lab'); | ||
|
||
|
||
const { before, describe, it } = exports.lab = Lab.script(); | ||
const expect = Code.expect; | ||
|
||
|
||
describe('import()', () => { | ||
|
||
let CatboxMemory; | ||
|
||
before(async () => { | ||
|
||
CatboxMemory = await import('../lib/index.js'); | ||
}); | ||
|
||
it('exposes all methods and classes as named imports', () => { | ||
|
||
expect(Object.keys(CatboxMemory)).to.equal([ | ||
'Engine', | ||
'default' | ||
]); | ||
}); | ||
}); |
This file contains 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