generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathBUILD.bazel
57 lines (49 loc) · 1.38 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
load("@aspect_bazel_lib//lib:copy_file.bzl", "copy_file")
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//jest:defs.bzl", "jest_test")
npm_link_all_packages(name = "node_modules")
buildifier(
name = "buildifier",
exclude_patterns = ["./.git/*"],
lint_mode = "fix",
mode = "fix",
tags = ["manual"], # tag as manual so windows ci does not build it by default
)
buildifier(
name = "buildifier.check",
exclude_patterns = ["./.git/*"],
lint_mode = "warn",
mode = "diff",
tags = ["manual"], # tag as manual so windows ci does not build it by default
)
alias(
name = "format",
actual = "//tools:format",
)
# Test case 3: jest config file in root package
# Copy files from tests package to keep the root package clean.
copy_file(
name = "case3_test_js",
src = "//jest/tests:case3.test.js",
out = "case3.test.js",
)
copy_file(
name = "case3_jest_config_js",
src = "//jest/tests:case3.jest.config.js",
out = "case3.jest.config.js",
)
jest_test(
name = "case3",
config = "case3.jest.config.js",
data = [
"case3.test.js",
],
node_modules = "//:node_modules",
)
copy_to_bin(
name = "case8.config",
srcs = ["test_case8.jest.config.js"],
visibility = ["//visibility:public"],
)