Skip to content

Commit

Permalink
chore(test): add ESM integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
lionralfs committed Dec 28, 2023
1 parent 36cb9a9 commit 9f8dbbd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ jobs:
- run: npm test
- run: npm run build
- run: cd test/commonjs && node index.js
- run: cd test/esm && node index.js
7 changes: 7 additions & 0 deletions test/esm/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* eslint-disable */
import { DiscogsClient } from '../../node-esm/index.js';

let client = new DiscogsClient();
if (!(client instanceof DiscogsClient)) {
process.exit(1);
}
3 changes: 3 additions & 0 deletions test/esm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}

0 comments on commit 9f8dbbd

Please sign in to comment.