Releases: aspect-build/rules_jest
v0.19.2
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "175f92448bd11b398ee94c6bb09cabf76df75a77d21c9555723798c58a2e73c8",
strip_prefix = "rules_jest-0.19.2",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.19.2/rules_jest-v0.19.2.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: disable windows BCR check until Windows issues fixed by @gregmagolan in #138
Full Changelog: v0.19.1...v0.19.2
v0.19.1
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "35072b1058d6333d15afb0387474f64c3876ed322f60b7b953d664aa3705ac36",
strip_prefix = "rules_jest-0.19.1",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.19.1/rules_jest-v0.19.1.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: fix bzlmod windows presubmit by @gregmagolan in #137
Full Changelog: v0.19.0...v0.19.1
v0.19.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "c056849ef07714427c177114c3f21daa39be8964e753c2db9930e9166e1717aa",
strip_prefix = "rules_jest-0.19.0",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.19.0/rules_jest-v0.19.0.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- fix: enable coverage with COVERAGE_DIR env by @thesayyn in #125
- fix: support split postprocessing by @thesayyn in #132
- test: add js_library config tests by @jbedard in #131
- feat: run snapshot updates as tests by @jbedard in #133
- feat: update to rules_js 1.27.0 and pickup fixed_args feature by @gregmagolan in #135
New Contributors
Full Changelog: v0.18.4...v0.19.0
v0.18.4
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "d3bb833f74b8ad054e6bff5e41606ff10a62880cc99e4d480f4bdfa70add1ba7",
strip_prefix = "rules_jest-0.18.4",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.18.4/rules_jest-v0.18.4.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: remove bazeliskrc from e2e by @alexeagle in #129
Full Changelog: v0.18.2...v0.18.4
v0.18.3
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "bdf626da35f9f39114267b518ce3b5a25e5ffd5327b45e73d63c6da849950c0b",
strip_prefix = "rules_jest-0.18.3",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.18.3/rules_jest-v0.18.3.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- docs: expose jest_test rule, remove tags param by @jbedard in #121
- fix: jest_test rule named the same as the macro by @alexeagle in #122
- fix: support jest config function by @panjiesw in #127
New Contributors
Full Changelog: v0.18.1...v0.18.3
v0.18.2
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "48a16d31be995b2fdd868f5e18aee3d1980061576be75bad98bbbe1de2dde9d3",
strip_prefix = "rules_jest-0.18.2",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.18.2/rules_jest-v0.18.2.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- docs: expose jest_test rule, remove tags param by @jbedard in #121
- fix: jest_test rule named the same as the macro by @alexeagle in #122
- fix: support jest config function by @panjiesw in #127
New Contributors
Full Changelog: v0.18.1...v0.18.2
v0.18.1
WORKSPACE
users that are pinning aspect_rules_js
, the rules_jest 0.18.x releases bump the minimum rules_js version required for rules_jest compatibility to v1.24.0. WORKSPACE
users that get rules_js transitively from rules_jest_dependencies
are not affected. bzlmod users are also not affected since bzlmod ensure the minimum version of rules_js that rules_jest requires is used.
WORKSPACE snippet
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "52dc08fd252add240124ef7ccc46df3a505121758dfb96578a3d5f2ebb4c2b40",
strip_prefix = "rules_jest-0.18.1",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.18.1/rules_jest-v0.18.1.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- fix: don't add jest-cli and jest-unit if they are already in user provided data by @gregmagolan in #120
Full Changelog: v0.18.0...v0.18.1
v0.18.0
WORKSPACE
users that are pinning aspect_rules_js
, this bumps the minimum rules_js version required for rules_jest compatibility to v1.24.0. WORKSPACE
users that get rules_js transitively from rules_jest_dependencies
are not affected. bzlmod users are also not affected since bzlmod ensure the minimum version of rules_js that rules_jest requires is used.
WORKSPACE snippet
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "e8b2714a27fbafed778c6a53e4294c8cf9ba9ffeca8d81ad76c7981a5f861f70",
strip_prefix = "rules_jest-0.18.0",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.18.0/rules_jest-v0.18.0.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: fix typo in docstring by @gregmagolan in #118
- chore: bzlmod by @alexeagle in #113
- perf: use rules_js Bazel 6 optimized fs patches if using Bazel 6 and experimental_allow_unresolved_symlinks is on by @gregmagolan in #119
Full Changelog: v0.17.0...v0.18.0
v0.17.0
jest_repositories
repository rule is removed and a new node_modules
attribute is now required for jest_test
. This change is BREAKING for all users.
The //path/to:node_modules
tree target must be passed to the jest_test
rules via the node_modules
attribute. For example,
jest_test(
name = "test",
node_modules = "//:node_modules",
...
)
You'll need jest-cli
and jest-junit
linked in the node_modules tree provided. The jest-junit
requirement can be removed by setting auto_configure_reporters = False
on your jest_test
targets.
This change has the added benefits of not requiring users to keep the jest version used in their package.json
in sync with their WORKSPACE and not requiring any changes to rules_jest
to support new releases of jest.
This change is in the spirit of the change in rules_webpack v0.11.0, rules_jasmine v0.4.0, rules_rollup v0.14.0 and rules_terser v0.14.0 so the patterns on the downstream rules_js rulesets we maintain are aligned both for maintainers and for users.
WORKSPACE snippet
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "a2f35eedce1a59f94b2158b056caab09ed66b92cafabd631b25dac78a178e044",
strip_prefix = "rules_jest-0.17.0",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.17.0/rules_jest-v0.17.0.tar.gz",
)
####################
# aspect_rules_jest setup #
####################
# Fetches the aspect_rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- refactor: remove vendored jest versions; user must provider their own jest-cli from their node_modules by @gregmagolan in #117
Full Changelog: v0.16.2...v0.17.0
v0.16.2
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jest",
sha256 = "2f62b6356afd2b04a2bd6298e19aaf031b001f79af42c7081b9001d71a9d9602",
strip_prefix = "rules_jest-0.16.2",
url = "https://github.com/aspect-build/rules_jest/releases/download/v0.16.2/rules_jest-v0.16.2.tar.gz",
)
####################
# rules_jest setup #
####################
# Fetches the rules_jest dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jest//jest:dependencies.bzl", "rules_jest_dependencies")
rules_jest_dependencies()
# Fetches the npm packages for jest-cli.
load("@aspect_rules_jest//jest:repositories.bzl", "jest_repositories")
jest_repositories(name = "jest")
load("@jest//:npm_repositories.bzl", jest_npm_repositories = "npm_repositories")
jest_npm_repositories()
# Register a nodejs toolchain, if you haven't already done so.
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
What's Changed
- chore: update snapshots hint by @gregmagolan in #104
- chore: update to aspect_bazel_lib 1.27.2 by @gregmagolan in #106
- chore: update to Aspect CLI 5.2.0-rc0 by @gregmagolan in #108
- chore: update to Aspect CLI 5.2.1 by @gregmagolan in #109
- fix: timeout/size shouldn't be passed to js_binary by @alexeagle in #110
- fix: remove other attributes that don't belong on js_binary by @alexeagle in #111
- chore: update dependencies by @gregmagolan in #112
- fix: also pass data to js_binary tool for jest snapshot updates by @gregmagolan in #114
- fix: env is valid for js_test, js_binary and js_run_binary by @gregmagolan in #115
- test: add test case for #114 by @gregmagolan in #116
Full Changelog: v0.16.1...v0.16.2