mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
parent
902f125954
commit
625d8596a4
3 changed files with 525 additions and 496 deletions
|
@ -32,7 +32,8 @@
|
||||||
"espree": "^9.0.0",
|
"espree": "^9.0.0",
|
||||||
"estraverse": "^5.2.0",
|
"estraverse": "^5.2.0",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"jest-cli": "^27.2.4",
|
"jest-cli": "^28.0.0-alpha.5",
|
||||||
|
"jest-environment-jsdom": "^28.0.0-alpha.5",
|
||||||
"jsdoc": "^3.6.6",
|
"jsdoc": "^3.6.6",
|
||||||
"license-checker-rseidelsohn": "^2.1.1",
|
"license-checker-rseidelsohn": "^2.1.1",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
|
|
|
@ -39,6 +39,10 @@ def jest_test(deps, name = "jest", protobuf = False, env = "node"):
|
||||||
)
|
)
|
||||||
|
|
||||||
# then test them
|
# then test them
|
||||||
|
optional_jsdom_deps = [
|
||||||
|
"@npm//jest-environment-jsdom",
|
||||||
|
] if env == "jsdom" else []
|
||||||
|
|
||||||
_jest_test(
|
_jest_test(
|
||||||
name = name,
|
name = name,
|
||||||
args = [
|
args = [
|
||||||
|
@ -52,7 +56,7 @@ def jest_test(deps, name = "jest", protobuf = False, env = "node"):
|
||||||
],
|
],
|
||||||
data = deps + bundled_srcs + [
|
data = deps + bundled_srcs + [
|
||||||
"//ts:jest.config.js",
|
"//ts:jest.config.js",
|
||||||
],
|
] + optional_jsdom_deps,
|
||||||
target_compatible_with = select({
|
target_compatible_with = select({
|
||||||
"@platforms//os:osx": [],
|
"@platforms//os:osx": [],
|
||||||
"@platforms//os:linux": [],
|
"@platforms//os:linux": [],
|
||||||
|
|
Loading…
Reference in a new issue