-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: support typescript on qunit tests
Rename qunit-tests.js to .ts and stop hanging our functions on the main QUnit object (which isn't typesafe). We can just export them from our module. Adjust the users accordingly. Add explicit file extensions to the list of tests in files.js (removing the hardcoded '.js' from build.js) and add our first .ts case. This new case tests that `cockpit.assert()` works properly in the positive and negative cases and also verifies that it can be used for type narrowing (otherwise tsc would complain).
- Loading branch information
1 parent
bfc4186
commit 18ec3fa
Showing
13 changed files
with
133 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule node_modules
updated
6 files
+6 −0 | .package-lock.json | |
+1 −0 | .package.json | |
+21 −0 | @types/qunit/LICENSE | |
+15 −0 | @types/qunit/README.md | |
+880 −0 | @types/qunit/index.d.ts | |
+50 −0 | @types/qunit/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.