Skip to content

Commit

Permalink
fix: missing babel config file in jest example
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Oct 22, 2019
1 parent 65f76ff commit 34755a0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 15 additions & 2 deletions examples/jest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,25 @@ jest_test(
"index2.test.js",
],
jest_config = ":jest.config.js",
tags = [
# Need to set the pwd to avoid jest needing a runfiles helper
# Windows users with permissions can use --enable_runfiles
# to make this test work
"no-bazelci-windows",
],
deps = [
":extra.js",
":index.js",
"babel.config.js",
"extra.js",
"index.js",
"@npm//@babel/core",
"@npm//@babel/preset-env",
"@npm//@jest/transform",
"@npm//babel-jest",
],
)

# Just a dummy test so that we have a test target for //... on certain bazelci platforms with bazel_integration_test
sh_test(
name = "dummy_test",
srcs = ["dummy_test.sh"],
)
2 changes: 2 additions & 0 deletions examples/jest/dummy_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo "Just a dummy test so that we have a test target for //... on certain bazelci platforms with bazel_integration_test"
exit 0

0 comments on commit 34755a0

Please sign in to comment.