-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement tests with jest * export function findTabStops * Add Received tests using jest matcher * add antispam tests * add datetime tests * implement GetHeaderList tests * First pass on errors tests * move matchers to subdir * adjust cleanStack for jest * better file name * add xml tests * remove grunt/qunit * make command line and vs code error tests work at the same time * Fix filename * adjust stacks further for website runner * don't fail on coverage (yet) * Add linting * clean up lint * add some whitespace fixup lint * remove lint todo * convert jest config to typescript * enable esModuleInterop * enable allowSyntheticDefaultImports * clean up scripts * Tidy up webpack.config.js * remove dead comment * remove redundant strict checks * remove more implied by strict * slight script tweaks * Enable no-inferrable-types * remove dead comment
- Loading branch information
1 parent
9f78271
commit ddf828f
Showing
61 changed files
with
9,232 additions
and
6,792 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type {Config} from "jest"; | ||
// https://github.com/jest-community/awesome-jest | ||
const config: Config = { | ||
testEnvironment: "jsdom", | ||
transform: { | ||
"^.+.tsx?$": ["ts-jest",{ diagnostics: { ignoreCodes: ["TS151001"] } }], | ||
}, | ||
globals: { | ||
"__AIKEY__": "" | ||
}, | ||
collectCoverage: true, | ||
collectCoverageFrom: ["./src/**"], | ||
coverageDirectory: "./Pages/coverage", | ||
coverageReporters: ["json", "lcov", "text", "clover"], | ||
coverageThreshold: { | ||
global: { | ||
branches: 25, | ||
functions: 20, | ||
lines: 25, | ||
statements: 25, | ||
}, | ||
}, | ||
reporters: [ | ||
"default", | ||
["jest-html-reporters", { | ||
"publicPath": "./Pages/test", | ||
"filename": "index.html" | ||
}] | ||
] | ||
}; | ||
|
||
export default config; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.