Skip to content

Commit

Permalink
Test importing as module
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Jun 21, 2024
1 parent 7235c85 commit a81ea61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
- run: npm install --no-audit
- run: npm audit --audit-level=low
- run: npx c8 -r lcovonly -r text --check-coverage --100 npm test
- run: node --import=@litejs/cli/test.js test/load.mjs
- run: npm run lint
- uses: coverallsapp/github-action@v2
name: Upload to coveralls.io
Expand Down
10 changes: 10 additions & 0 deletions test/load.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

import DOM from "../dom.js"

describe("Run as ESM module", () => {
it("should export function", assert => {
assert.type(DOM.DOMParser, "function")
assert.end()
})
})

0 comments on commit a81ea61

Please sign in to comment.