Skip to content

Commit ee87ec7

Browse files
authored
Merge pull request #36 from github/convert-tests-to-typescript
2 parents 9fee0e1 + e0af763 commit ee87ec7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/test.js renamed to test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('custom-element', function () {
2121

2222
it('initiates', function () {
2323
const ce = document.querySelector('custom-element')
24-
assert.equal(ce.textContent, ':wave:')
24+
assert.equal(ce?.textContent, ':wave:')
2525
})
2626
})
2727
})

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"outDir": "dist",
99
"removeComments": true,
1010
"preserveConstEnums": true,
11-
"moduleResolution": "node"
11+
"moduleResolution": "node",
12+
"allowSyntheticDefaultImports": true
1213
}
1314
}

0 commit comments

Comments
 (0)