Skip to content

Commit 0222c6e

Browse files
dgrahammuan
andcommitted
Load module in test suite
Co-authored-by: Mu-An Chiou <[email protected]>
1 parent 8a7eda9 commit 0222c6e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@github/remote-input-element",
33
"version": "0.1.2",
44
"description": "An input element that sends its value to a server endpoint and renders the response body.",
5-
"main": "dist/index.umd.js",
6-
"module": "dist/index.esm.js",
5+
"main": "dist/index.js",
6+
"module": "dist/index.js",
77
"types": "dist/index.d.ts",
88
"license": "MIT",
99
"repository": "github/remote-input-element",

test/karma.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ function reply(request, response, next) {
2525
module.exports = function(config) {
2626
config.set({
2727
frameworks: ['mocha', 'chai'],
28-
files: ['../dist/index.umd.js', 'test.js'],
28+
files: [
29+
{
30+
pattern: '../dist/index.js',
31+
type: 'module'
32+
},
33+
'test.js'
34+
],
2935
reporters: ['mocha'],
3036
port: 9876,
3137
colors: true,

0 commit comments

Comments
 (0)