Fix keyseq tests

This commit is contained in:
Oliver Blanthorn 2020-05-09 12:28:30 +01:00
parent 3d99cb6025
commit 8ada387819
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
3 changed files with 11 additions and 2 deletions

View file

@ -2,12 +2,15 @@ const tsConfig = require('./tsconfig');
module.exports = {
preset: "ts-jest",
setupFiles: [
"jest-webextension-mock"
],
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
globals: {
"ts-jest": {
tsConfig: {
...tsConfig.compilerOptions,
types: ["jest", "node"]
types: ["jest", "node", "web-ext-types"]
},
diagnostics: {
ignoreCodes: [151001]

View file

@ -13,8 +13,8 @@
"immer": "^6.0.3",
"mark.js": "^8.11.1",
"mithril": "^2.0.4",
"rss-parser": "^3.7.6",
"ramda": "^0.27.0",
"rss-parser": "^3.7.6",
"semver-compare": "^1.0.0",
"typedoc-default-themes": "^0.9.0",
"uuid": "^7.0.3"
@ -28,6 +28,7 @@
"copy-webpack-plugin": "^5.1.1",
"geckodriver": "^1.19.1",
"jest": "^25.5.3",
"jest-webextension-mock": "^3.5.4",
"marked": "^0.8.2",
"nearley": "^2.19.2",
"prettier": "^1.19.1",

View file

@ -4891,6 +4891,11 @@ jest-watcher@^25.5.0:
jest-util "^25.5.0"
string-length "^3.1.0"
jest-webextension-mock@^3.5.4:
version "3.5.4"
resolved "https://registry.yarnpkg.com/jest-webextension-mock/-/jest-webextension-mock-3.5.4.tgz#a9995a94cbc2a004def1d0de5a66e42c8fc9f5c4"
integrity sha512-lB7JFhpND5gcHdzoLj2q3P1Sep66QPUC7s+5Md7N+jYaadiHmIhqh6p7aS9CYjYgWiue0bi0kfnWU+3jrfb1tg==
jest-worker@^25.5.0:
version "25.5.0"
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-25.5.0.tgz#2611d071b79cea0f43ee57a3d118593ac1547db1"