Skip to content

Commit

Permalink
Rewrite tests in TypeScript
Browse files Browse the repository at this point in the history
Signed-off-by: Arve Knudsen <[email protected]>
  • Loading branch information
aknuds1 committed Jun 3, 2023
1 parent 90feb0d commit e5b0a26
Show file tree
Hide file tree
Showing 6 changed files with 224 additions and 54 deletions.
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extension": ["ts"],
"spec": "test/**/*-tests.ts",
"require": "ts-node/register"
}
155 changes: 155 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@
"react": "^18.0"
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"coveralls": "^3.1.0",
"eslint": "^8.1",
"mocha": "^10.0",
"mocha-lcov-reporter": "^1.2.0",
"nyc": "^15.1.0",
"react-dom": "^18.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.3"
},
"volta": {
Expand Down
4 changes: 1 addition & 3 deletions test/boolattrs.js → test/boolattrs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// Boolean HTML attributes, in the case React expects.
const booleanAttrs = [
'allowFullScreen',
Expand Down Expand Up @@ -29,4 +27,4 @@ const booleanAttrs = [
'truespeed',
];

module.exports = booleanAttrs;
export {booleanAttrs};
Loading

0 comments on commit e5b0a26

Please sign in to comment.