Content-Length: 287513 | pFad | http://github.com/formatjs/formatjs/commit/91d7c874dc09457be1e383edc5bc652ee4f0a041

DB chore(babel-plugin-formatjs): fix integration test timeout · formatjs/formatjs@91d7c87 · GitHub
Skip to content

Commit 91d7c87

Browse files
committed
chore(babel-plugin-formatjs): fix integration test timeout
1 parent 167e16a commit 91d7c87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/vitest.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
44
load("@npm//:vitest/package_json.bzl", vitest_bin = "bin")
55

6-
def vitest(name, srcs = [], deps = [], size = "small", flaky = False, tags = [], no_copy_to_bin = [], fixtures = [], dom = False, snapshots = [], skip_typecheck = False, **kwargs):
6+
def vitest(name, srcs = [], deps = [], size = "small", flaky = False, tags = [], no_copy_to_bin = [], fixtures = [], dom = False, snapshots = [], skip_typecheck = False, timeout = None, **kwargs):
77
"""
88
A rule to define a vitest target.
99
@@ -19,6 +19,7 @@ def vitest(name, srcs = [], deps = [], size = "small", flaky = False, tags = [],
1919
fixtures (list, optional): A list of fixture files for the target. Defaults to an empty list.
2020
dom (bool, optional): Whether to run the test in a DOM environment. Defaults to False.
2121
skip_typecheck (bool, optional): Whether to skip typechecking. Defaults to False.
22+
timeout (str, optional): Custom timeout for the test in milliseconds. Defaults to None.
2223
**kwargs: Additional keyword arguments.
2324
"""
2425

@@ -52,6 +53,6 @@ def vitest(name, srcs = [], deps = [], size = "small", flaky = False, tags = [],
5253
no_copy_to_bin = no_copy_to_bin,
5354
args = [
5455
"run",
55-
] + (["--dom"] if dom else []),
56+
] + (["--dom"] if dom else []) + (["--test-timeout", timeout] if timeout else []),
5657
**kwargs
5758
)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/formatjs/formatjs/commit/91d7c874dc09457be1e383edc5bc652ee4f0a041

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy