blob: e9e33795fca4fe17f854236f0221a711ad3f519f [file]
load("@npm//@bazel/typescript:index.bzl", "ts_project")
load("@npm//jest-cli:index.bzl", "jest_test")
ts_project(
name = "test_lib",
srcs = ["index.test.ts"],
extends = "//:tsconfig.json",
tsconfig = {},
deps = [
"//ts/src",
"@npm//@types",
],
)
jest_test(
name = "test",
args = [
"--no-cache",
"--no-watchman",
"--ci",
"--colors",
"--config",
"jest.ts.config.js",
],
data = [
":test_lib",
"//:jest.ts.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",
# TODO: why does this fail almost all the time, but pass on local Mac?
"no-bazelci-mac",
],
)