aspect-build / aspect-build/rules_jest

[Bug]: jest_test fails with usage statement on windows

Open
#322 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Starlark
Stars
24
Forks
31
PR merge metrics
No merged PRs in 30d

Description

### What happened?

On Windows, jest_test fails with a usage message related to the --config parameter. It turns out it is because rules_jest is creating this parameter:

`--config 'myconfig.js'`

However the correct parameter on Windows is:

`--config "myconfig.js"`

### Version

Development (host) and target OS/architectures:
Windows

Output of `bazel --version`:
7.6.1

Version of the Aspect rules, or other relevant rules from your
`WORKSPACE` or `MODULE.bazel` file:
rules_js 2.4.2
rules_jest 0.23.3

Language(s) and/or frameworks involved:

### How to reproduce

```shell

```

### Any other information?

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue points to the rules_jest code that assembles the --config parameter; start by locating that command construction and checking how Windows quoting is handled. Reproduce with jest_test on Windows using rules_js 2.4.2 and rules_jest 0.23.3, then verify the command uses Windows-compatible double quotes and no longer prints the usage message.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.